Die earlier if we have no hash function.
This commit is contained in:
parent
2d1cbc85c8
commit
0e941da6fa
@ -709,6 +709,8 @@ int ssl3_mac(SSL *ssl, unsigned char *md, int send)
|
|||||||
hash=ssl->read_hash;
|
hash=ssl->read_hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If hash is NULL, then a crash will follow anyway */
|
||||||
|
OPENSSL_assert(hash);
|
||||||
md_size=EVP_MD_CTX_size(hash);
|
md_size=EVP_MD_CTX_size(hash);
|
||||||
npad=(48/md_size)*md_size;
|
npad=(48/md_size)*md_size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user