diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index 8e484d3b0..701ac5717 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c @@ -709,6 +709,8 @@ int ssl3_mac(SSL *ssl, unsigned char *md, int send) hash=ssl->read_hash; } + /* If hash is NULL, then a crash will follow anyway */ + OPENSSL_assert(hash); md_size=EVP_MD_CTX_size(hash); npad=(48/md_size)*md_size;