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/debug.c b/library/debug.c index c263e49..843b9f5 100644 --- a/library/debug.c +++ b/library/debug.c
@@ -182,7 +182,7 @@ prefix[maxlen] = '\0'; maxlen = sizeof( str ) - 1; - while( crt != NULL && crt->next != NULL ) + while( crt != NULL && crt->version != 0 ) { char buf[1024]; x509parse_cert_info( buf, sizeof( buf ) - 1, prefix, crt );