Only iterate over actual certificates in ssl_write_certificate_request()
This commit is contained in:
parent
f4cf80b86f
commit
c70e425a73
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user