Codebase list openssl / a682365
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
24802480 }
24812481
24822482 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 }
24832489
24842490 EVP_PKEY_free(pkdh);
24852491 pkdh = NULL;