提交 0e941da6 编写于 作者: B Ben Laurie

Die earlier if we have no hash function.

上级 2d1cbc85
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册