- Fixed bug resulting in failure to send the last certificate in the chain in ssl_write_certificate() and ssl_write_certificate_request()

This commit is contained in:
Paul Bakker 2010-02-18 18:16:31 +00:00
parent 361e6382db
commit 1f76115340
7 changed files with 51 additions and 3 deletions

View file

@ -182,7 +182,7 @@ void debug_print_crt( ssl_context *ssl, int level,
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 );