]> git.ipfire.org Git - thirdparty/openssl.git/commit - ssl/ssl_lib.c
Modify ssl_handshake_hash to call SSLfatal
authorTrev Larock <tlarock@juniper.net>
Fri, 28 May 2021 12:54:44 +0000 (12:54 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Jun 2021 14:43:43 +0000 (16:43 +0200)
commit147ed5f9def86840c9f6ba512e63a890d58ac1d6
tree8d2e6b9c6d4e26b31082e0164eb3ca649452c6db
parent7e8d6bafd0347de8653c336e6f067d8f3686a386
Modify ssl_handshake_hash to call SSLfatal

When EVP_MD_CTX_new fails call SSLfatal before the goto err.
This resolves a state machine issue on the out of memory condition.

Fixes #15491.
CLA: trivial

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15520)
ssl/ssl_lib.c