Fix QA failures on tip (don't dereference through a NULL pointer).
git-svn-id: svn://10.0.0.236/trunk@138807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
/*
|
||||
* CMS recipientInfo methods.
|
||||
*
|
||||
* $Id: cmsrecinfo.c,v 1.11 2003-02-28 23:32:29 relyea%netscape.com Exp $
|
||||
* $Id: cmsrecinfo.c,v 1.12 2003-03-03 19:46:22 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "cmslocal.h"
|
||||
@@ -380,7 +380,7 @@ NSS_CMSRecipientInfo_Destroy(NSSCMSRecipientInfo *ri)
|
||||
if (extra->pubKey)
|
||||
SECKEY_DestroyPublicKey(extra->pubKey);
|
||||
}
|
||||
if (ri->cmsg->contentInfo.contentTypeTag == &fakeContent) {
|
||||
if (ri->cmsg && ri->cmsg->contentInfo.contentTypeTag == &fakeContent) {
|
||||
NSS_CMSMessage_Destroy(ri->cmsg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user