Restore SSLerr on PACKET_strndup failure.
authorEmilia Kasper <emilia@openssl.org>
Thu, 10 Sep 2015 12:47:04 +0000 (14:47 +0200)
committerEmilia Kasper <emilia@openssl.org>
Thu, 10 Sep 2015 14:40:26 +0000 (16:40 +0200)
Reviewed-by: Dr Stephen Henson <steve@openssl.org>
ssl/s3_srvr.c

index 16f4db975c0a34144a4d3139648358c3a65838cd..ec09840d5b73a96f57cb10d266b0e34c3d962840 100644 (file)
@@ -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;
         }