peer_tmp doesn't exist if no-ec no-dh.
authorBen Laurie <ben@links.org>
Sun, 31 Jul 2016 14:48:24 +0000 (15:48 +0100)
committerBen Laurie <ben@links.org>
Mon, 1 Aug 2016 10:30:33 +0000 (11:30 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/statem/statem_clnt.c

index 5fb0080..9d4af3a 100644 (file)
@@ -1583,8 +1583,10 @@ MSG_PROCESS_RETURN tls_process_key_exchange(SSL *s, PACKET *pkt)
 
     save_param_start = *pkt;
 
+#if !defined(OPENSSL_NO_EC) || !defined(OPENSSL_NO_DH)
     EVP_PKEY_free(s->s3->peer_tmp);
     s->s3->peer_tmp = NULL;
+#endif
 
     if (alg_k & SSL_PSK) {
         if (!tls_process_ske_psk_preamble(s, pkt, &al))