Hoist memset of CBB above EVP_MD_CTX_new() and HMAC_CTX_new() to avoid
authortb <tb@openbsd.org>
Sun, 26 Dec 2021 15:10:59 +0000 (15:10 +0000)
committertb <tb@openbsd.org>
Sun, 26 Dec 2021 15:10:59 +0000 (15:10 +0000)
commit2a6cb758e0c0f8cf9f01ec114d327885844717c5
tree1d0f006f063c701c0e891947295bb5a82f69561e
parenta1543fdeacfc5931a678090a5173b5e20d110ea4
Hoist memset of CBB above EVP_MD_CTX_new() and HMAC_CTX_new() to avoid
a use of uninitialized in the unlikely event that either of them fails.
Problem introduced in r1.128.

CID 345113

ok jsing
lib/libssl/ssl_srvr.c