commit | 0333b978fab80d007abc3f5cc1a25bb78227570c | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Mon Nov 04 17:08:28 2013 +0100 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Mon Nov 04 17:08:28 2013 +0100 |
tree | 7b60caae560dfddbceb26211c878ebfda66bb54f | |
parent | e1121b6217748fb2c8d82e523dba9d16ee002922 [diff] |
Handshake key_cert should be set on first addition to the key_cert chain
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 055798f..bca55da 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -3581,7 +3581,10 @@ /* 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;