Make malloc-init script a bit happier
This commit is contained in:
parent
5924f9f810
commit
e5b0fc1847
5 changed files with 15 additions and 18 deletions
library
|
@ -819,8 +819,8 @@ int x509_crt_parse_der( x509_crt *chain, const unsigned char *buf,
|
|||
return( POLARSSL_ERR_X509_MALLOC_FAILED );
|
||||
|
||||
prev = crt;
|
||||
x509_crt_init( crt->next );
|
||||
crt = crt->next;
|
||||
x509_crt_init( crt );
|
||||
}
|
||||
|
||||
if( ( ret = x509_crt_parse_der_core( crt, buf, buflen ) ) != 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue