ensure that the EVP_CIPHER_CTX object is initialized
[openssl.git] / ssl / s2_pkt.c
index cf0aee2bd696dd7352fc2316835c4c97cce862d1..a10929a757f9f865021b983766a472d6c59011b7 100644 (file)
@@ -247,6 +247,7 @@ static int ssl2_read_internal(SSL *s, void *buf, int len, int peek)
                else
                        {
                        mac_size=EVP_MD_size(s->read_hash);
+                       OPENSSL_assert(mac_size <= MAX_MAC_SIZE);
                        s->s2->mac_data=p;
                        s->s2->ract_data= &p[mac_size];
                        if (s->s2->padding + mac_size > s->s2->rlength)