From 0333b978fab80d007abc3f5cc1a25bb78227570c Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 4 Nov 2013 17:08:28 +0100 Subject: [PATCH] Handshake key_cert should be set on first addition to the key_cert chain --- library/ssl_tls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 055798f93..bca55da97 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -3581,7 +3581,10 @@ static ssl_key_cert *ssl_add_key_cert( ssl_context *ssl ) /* Append the new key_cert to the (possibly empty) current list */ if( ssl->key_cert == NULL ) + { ssl->key_cert = key_cert; + ssl->handshake->key_cert = key_cert; + } else { last = ssl->key_cert;