Only iterate over actual certificates in ssl_write_certificate_request()
This commit is contained in:
parent
f4cf80b86f
commit
c70e425a73
1 changed files with 1 additions and 1 deletions
|
@ -2073,7 +2073,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
|
||||||
crt = ssl->ca_chain;
|
crt = ssl->ca_chain;
|
||||||
|
|
||||||
total_dn_size = 0;
|
total_dn_size = 0;
|
||||||
while( crt != NULL )
|
while( crt != NULL && crt->version != 0 )
|
||||||
{
|
{
|
||||||
if( p - buf > 4096 )
|
if( p - buf > 4096 )
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue