commit | c70e425a73f2648f6794038656e0c3701ef6085e | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Fri Apr 18 13:47:38 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Fri Apr 18 13:50:19 2014 +0200 |
tree | a260420fb03b2dd01e89ef8834b37f7b9bc9c73c | |
parent | f4cf80b86f998260028494443af3cd74e44f933a [diff] |
Only iterate over actual certificates in ssl_write_certificate_request()
diff --git a/library/ssl_srv.c b/library/ssl_srv.c index c384364..dee6cd8 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c
@@ -2073,7 +2073,7 @@ crt = ssl->ca_chain; total_dn_size = 0; - while( crt != NULL ) + while( crt != NULL && crt->version != 0 ) { if( p - buf > 4096 ) break;