commit | 1f761153408c1be3773009c64b41f34d85ea199b | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Feb 18 18:16:31 2010 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Feb 18 18:16:31 2010 +0000 |
tree | 4d452d1fddbe89a9b9a05833bc3bf6b168cd3214 | |
parent | 361e6382db11f1ca6c557c413c7f8e387263e4f9 [diff] [blame] |
- Fixed bug resulting in failure to send the last certificate in the chain in ssl_write_certificate() and ssl_write_certificate_request()
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 17279ee..edd1b8e 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -1160,7 +1160,7 @@ i = 7; crt = ssl->own_cert; - while( crt != NULL && crt->next != NULL ) + while( crt != NULL && crt->version != 0 ) { n = crt->raw.len; if( i + 3 + n > SSL_MAX_CONTENT_LEN )