Commit 0e941da6 authored by Ben Laurie's avatar Ben Laurie
Browse files

Die earlier if we have no hash function.

parent 2d1cbc85
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;