]> granicus.if.org Git - openssl/commitdiff
Fix error codes.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 26 Feb 2013 16:46:58 +0000 (16:46 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 26 Feb 2013 17:05:39 +0000 (17:05 +0000)
(cherry picked from commit 388aff08dc38d6e4c5146d445b62f581bb484ed4)

ssl/d1_pkt.c
ssl/s3_pkt.c

index 429649d2536902ce4df695eed4197519850fcb0b..0bf87be6d21000f19ae070f1d836a7920ca4f10f 100644 (file)
@@ -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;
                        }
 
index f2c413e0ef1dac371b203520613ca24c67ed1425..35fcddf5b1c45d63f5ed70e85f89d5088988e9ab 100644 (file)
@@ -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;
                }