Commit c70e425a authored by Paul Bakker's avatar Paul Bakker
Browse files

Only iterate over actual certificates in ssl_write_certificate_request()

parent f4cf80b8
......@@ -2073,7 +2073,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
crt = ssl->ca_chain;
total_dn_size = 0;
while( crt != NULL )
while( crt != NULL && crt->version != 0 )
{
if( p - buf > 4096 )
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment