Fix uninitialised pointer dereference

This commit is contained in:
Manuel Pégourié-Gonnard 2014-11-11 22:17:26 +01:00
parent e9271e6835
commit 0369a5291b
3 changed files with 11 additions and 0 deletions

View file

@ -278,6 +278,8 @@ int asn1_get_sequence_of( unsigned char **p,
if( cur->next == NULL )
return( POLARSSL_ERR_ASN1_MALLOC_FAILED );
memset( cur->next, 0, sizeof( asn1_sequence ) );
cur = cur->next;
}
}