From: Emilia Kasper Date: Thu, 10 Sep 2015 12:47:04 +0000 (+0200) Subject: Restore SSLerr on PACKET_strndup failure. X-Git-Tag: OpenSSL_1_1_0-pre1~632 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cdde7b49a4ded6ce25b348314a231b99ce884c06;p=oweals%2Fopenssl.git Restore SSLerr on PACKET_strndup failure. Reviewed-by: Dr Stephen Henson --- diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 16f4db975c..ec09840d5b 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -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; }