From fe1c7fecf172f57834df2fca9ba32fec12dccf9f Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 29 Dec 2008 11:47:08 +0000 Subject: [PATCH] Reverse incorrect earlier fix. --- ssl/d1_pkt.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 75c2b63f3e..daf1fee881 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -423,17 +423,12 @@ printf("\n"); if ( (sess == NULL) || (s->enc_read_ctx == NULL) || (s->read_hash == NULL)) - clear=1; + clear=1; if (!clear) { + /* !clear => s->read_hash != NULL => mac_size != -1 */ mac_size=EVP_MD_CTX_size(s->read_hash); - if (mac_size <= 0) - { - al=SSL_AD_INTERNAL_ERROR; - SSLerr(SSL_F_DTLS1_PROCESS_RECORD,SSL_R_BAD_MAC_LENGTH); - goto f_err; - } if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+mac_size) { -- 2.25.1