Skip to content

Commit

Permalink
Fix potential NULL dereference in error path in gnutls_pkcs11_simple_…
Browse files Browse the repository at this point in the history
…parse()

Spotted by Coverity. Also fixed in GnuTLS already in commit 6aca5dd7.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 26, 2012
1 parent 644d962 commit a2454d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnutls_pkcs12.c
Expand Up @@ -502,7 +502,7 @@ gnutls_pkcs12_simple_parse (gnutls_pkcs12_t p12,
gnutls_x509_crt_deinit(_extra_certs[i]);
gnutls_free(_extra_certs);
}
if (_chain_len && chain != NULL)
if (_chain_len && _chain != NULL)
{
unsigned int i;
for (i = 0; i < _chain_len; i++)
Expand Down

0 comments on commit a2454d4

Please sign in to comment.