Fix DTLS anonymous EC(DH) denial of service
CVE-2014-3510 Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
This commit is contained in:
parent
40a2200d89
commit
1d7d0ed9c2
@ -2362,6 +2362,13 @@ int ssl3_send_client_key_exchange(SSL *s)
|
|||||||
RSA *rsa;
|
RSA *rsa;
|
||||||
unsigned char tmp_buf[SSL_MAX_MASTER_KEY_LENGTH];
|
unsigned char tmp_buf[SSL_MAX_MASTER_KEY_LENGTH];
|
||||||
|
|
||||||
|
if (s->session->sess_cert == NULL)
|
||||||
|
{
|
||||||
|
/* We should always have a server certificate with SSL_kRSA. */
|
||||||
|
SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_INTERNAL_ERROR);
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
if (s->session->sess_cert->peer_rsa_tmp != NULL)
|
if (s->session->sess_cert->peer_rsa_tmp != NULL)
|
||||||
rsa=s->session->sess_cert->peer_rsa_tmp;
|
rsa=s->session->sess_cert->peer_rsa_tmp;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user