Update DTLS code to match CBC decoding in TLS.
[openssl.git] / ssl / s3_enc.c
index a5829dc54e87a99db94e54df2264d462ebddf0b4..76d87b57e3010e21f3c54239328538f221a0a0c3 100644 (file)
@@ -530,11 +530,7 @@ int ssl3_enc(SSL *s, int send)
                if (!send)
                        {
                        if (l == 0 || l%bs != 0)
-                               {
-                               SSLerr(SSL_F_SSL3_ENC,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG);
-                               ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_DECRYPTION_FAILED);
                                return 0;
-                               }
                        /* otherwise, rec->length >= bs */
                        }