Die earlier if we have no hash function.
This commit is contained in:
parent
2d1cbc85c8
commit
0e941da6fa
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue