]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/s3_enc.c
misspellings fixes by https://github.com/vlajos/misspell_fixer
[thirdparty/openssl.git] / ssl / s3_enc.c
index 98f38949549785b66949ebe4335300f1503dbbb7..b334aba5d35129cea7e8aafb44008e0a19e7da87 100644 (file)
@@ -494,7 +494,7 @@ void ssl3_cleanup_key_block(SSL *s)
  *       short etc).
  *   1: if the record's padding is valid / the encryption was successful.
  *   -1: if the record's padding is invalid or, if sending, an internal error
- *       occured.
+ *       occurred.
  */
 int ssl3_enc(SSL *s, int send)
        {
@@ -552,11 +552,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 */
                        }