]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Ensure we raise SSLfatal on error
authorMatt Caswell <matt@openssl.org>
Thu, 22 Oct 2020 12:53:27 +0000 (13:53 +0100)
committerBenjamin Kaduk <bkaduk@akamai.com>
Mon, 26 Oct 2020 16:20:13 +0000 (09:20 -0700)
We were missing a call to SSLfatal. A comment claimed that we had already
called it - but that is incorrect.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/13230)

ssl/statem/statem_srvr.c

index 14cb27e6db010669079e29eda28f548c205f2207..cf45a40ce4e3ec8b96a91ccbc3685572692b98f1 100644 (file)
@@ -2577,7 +2577,7 @@ int tls_construct_server_key_exchange(SSL *s, WPACKET *pkt)
 
         s->s3->tmp.pkey = ssl_generate_pkey(pkdhp);
         if (s->s3->tmp.pkey == NULL) {
-            /* SSLfatal() already called */
+            SSLfatal(s, SSL_AD_INTERNAL_ERROR, 0, ERR_R_INTERNAL_ERROR);
             goto err;
         }