Update DTLS code to match CBC decoding in TLS.
[oweals/openssl.git] / ssl / t1_enc.c
index 4b31742783d6d60308d8c52281b06bf9e5a6768b..c7759ebf14d47d1e9be3d1c44eadee8156b81854 100644 (file)
@@ -849,11 +849,7 @@ int tls1_enc(SSL *s, int send)
                if (!send)
                        {
                        if (l == 0 || l%bs != 0)
-                               {
-                               SSLerr(SSL_F_TLS1_ENC,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG);
-                               ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_DECRYPTION_FAILED);
                                return 0;
-                               }
                        }
                
                i = EVP_Cipher(ds,rec->data,rec->input,l);