commit | e2e36d31bddcda8958237173111916c624426843 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Mon Jan 23 09:56:51 2012 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Mon Jan 23 09:56:51 2012 +0000 |
tree | 092805d322d929f2f6e8d092ad301c4d154926a2 | |
parent | d567aa2b6ed1e9a38ca17a7f73117954efee8dd5 [diff] [blame] |
- Merged changes from trunk to PolarSSL 1.1 branch
diff --git a/library/x509parse.c b/library/x509parse.c index f561754..ec4fffc 100644 --- a/library/x509parse.c +++ b/library/x509parse.c
@@ -968,6 +968,10 @@ if ( *p < end ) { cur_entry->next = malloc( sizeof( x509_crl_entry ) ); + + if( cur_entry->next == NULL ) + return( POLARSSL_ERR_X509_MALLOC_FAILED ); + cur_entry = cur_entry->next; memset( cur_entry, 0, sizeof( x509_crl_entry ) ); }