diff options
author | Matt Caswell <matt@openssl.org> | 2020-10-22 13:53:27 +0100 |
---|---|---|
committer | Benjamin Kaduk <bkaduk@akamai.com> | 2020-10-26 09:20:13 -0700 |
commit | 8979ffee95043baffa51887b1d43d9b07f9fae1b (patch) | |
tree | a6c8777b9d4fc1903ef6d2e8eba4e4b97ba21d0f | |
parent | 2e06150e3928daa06d5ff70c32bffad8088ebe58 (diff) |
Ensure we raise SSLfatal on error
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)
-rw-r--r-- | ssl/statem/statem_srvr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index 14cb27e6db..cf45a40ce4 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -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; } |