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:
relyea%netscape.com
2003-03-03 19:46:22 +00:00
parent 3b200d48b4
commit 7fb79e38a6

View File

@@ -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);
}