mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
353760: klocwork null pointer dereference in p7decode.c. r=nelson
This commit is contained in:
parent
4cc26433e6
commit
76dff9c91f
@ -38,7 +38,7 @@
|
||||
/*
|
||||
* PKCS7 decoding, verification.
|
||||
*
|
||||
* $Id: p7decode.c,v 1.22 2006/06/23 17:01:38 rrelyea%redhat.com Exp $
|
||||
* $Id: p7decode.c,v 1.23 2006/10/09 22:22:33 alexei.volkov.bugs%sun.com Exp $
|
||||
*/
|
||||
|
||||
#include "nssrenam.h"
|
||||
@ -1239,6 +1239,10 @@ SEC_PKCS7DecodeItem(SECItem *p7item,
|
||||
|
||||
p7dcx = SEC_PKCS7DecoderStart(cb, cb_arg, pwfn, pwfn_arg, decrypt_key_cb,
|
||||
decrypt_key_cb_arg, decrypt_allowed_cb);
|
||||
if (!p7dcx) {
|
||||
/* error code is set */
|
||||
return NULL;
|
||||
}
|
||||
(void) SEC_PKCS7DecoderUpdate(p7dcx, (char *) p7item->data, p7item->len);
|
||||
return SEC_PKCS7DecoderFinish(p7dcx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user