From 3c53fd892c69eef3c0a210a049102b66f33d69a3 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 26 Feb 2013 16:46:58 +0000 Subject: [PATCH] Fix error codes. (cherry picked from commit 388aff08dc38d6e4c5146d445b62f581bb484ed4) --- ssl/d1_pkt.c | 2 +- ssl/s3_pkt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 429649d253..0bf87be6d2 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -455,7 +455,7 @@ printf("\n"); orig_len < mac_size+1)) { al=SSL_AD_DECODE_ERROR; - SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_LENGTH_TOO_SHORT); + SSLerr(SSL_F_DTLS1_PROCESS_RECORD,SSL_R_LENGTH_TOO_SHORT); goto f_err; } diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index f2c413e0ef..35fcddf5b1 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -409,7 +409,7 @@ fprintf(stderr, "Record type=%d, Length=%d\n", rr->type, rr->length); if (enc_err == 0) { al=SSL_AD_DECRYPTION_FAILED; - SSLerr(SSL_F_TLS1_ENC,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG); + SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG); goto f_err; } -- 2.25.1