Browse Source

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/13229)
master
Matt Caswell 2 years ago
committed by Benjamin Kaduk
parent
commit
47b422c90a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ssl/statem/statem_srvr.c

+ 1
- 1
ssl/statem/statem_srvr.c View File

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


Loading…
Cancel
Save