commit | b6b0956631b8cb941af17c521f4697ec09670625 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Wed Sep 18 14:17:41 2013 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Wed Sep 18 14:32:52 2013 +0200 |
tree | db92b185ac5dc837d6d2c917d5a311102b91cef8 | |
parent | c559c7a680629bf8851c340e6e4cfcfa0c11e3d3 [diff] [blame] |
Rm of memset instead of x509_crt_init()
diff --git a/library/ssl_cache.c b/library/ssl_cache.c index a1879fd..113f724 100644 --- a/library/ssl_cache.c +++ b/library/ssl_cache.c
@@ -95,7 +95,7 @@ if( session->peer_cert == NULL ) return( 1 ); - memset( session->peer_cert, 0, sizeof(x509_crt) ); + x509_crt_init( session->peer_cert ); if( x509_crt_parse( session->peer_cert, entry->peer_cert.p, entry->peer_cert.len ) != 0 ) {