Check the return from EVP_PKEY_get0_DH() Fixes #5934 Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5983)
Matt Caswell
6 years ago
1 changed file(s) with
6 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+6
-0
ssl/statem/statem_srvr.c
less
more
2480
2480
}
2481
2481
2482
2482
dh = EVP_PKEY_get0_DH(s->s3->tmp.pkey);
2483
if (dh == NULL) {
2484
SSLfatal(s, SSL_AD_INTERNAL_ERROR,
2485
SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE,
2486
ERR_R_INTERNAL_ERROR);
2487
goto err;
2488
}
2483
2489
2484
2490
EVP_PKEY_free(pkdh);
2485
2491
pkdh = NULL;