From 7fb79e38a64caebbd2fb2d67a4ae6c1ac9ea3f68 Mon Sep 17 00:00:00 2001 From: "relyea%netscape.com" Date: Mon, 3 Mar 2003 19:46:22 +0000 Subject: [PATCH] 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 --- mozilla/security/nss/lib/smime/cmsrecinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/security/nss/lib/smime/cmsrecinfo.c b/mozilla/security/nss/lib/smime/cmsrecinfo.c index 3b1e91cb338..33239e03263 100644 --- a/mozilla/security/nss/lib/smime/cmsrecinfo.c +++ b/mozilla/security/nss/lib/smime/cmsrecinfo.c @@ -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); }