mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Restore SSLerr on PACKET_strndup failure.
Reviewed-by: Dr Stephen Henson <steve@openssl.org>
This commit is contained in:
parent
05d7bf6c5b
commit
cdde7b49a4
@ -2271,6 +2271,7 @@ int ssl3_get_client_key_exchange(SSL *s)
|
||||
}
|
||||
|
||||
if (!PACKET_strndup(&psk_identity, &s->session->psk_identity)) {
|
||||
SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE, ERR_R_INTERNAL_ERROR);
|
||||
al = SSL_AD_INTERNAL_ERROR;
|
||||
goto f_err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user