From 08be8afaa6ae51ec220dcd922fd114ebc4ba1771 Mon Sep 17 00:00:00 2001 From: "ian.mcgreer%sun.com" Date: Thu, 7 Mar 2002 22:53:40 +0000 Subject: additional change to last patch, suggested by wtc r=wtc --- security/nss/lib/pki/pki3hack.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'security') diff --git a/security/nss/lib/pki/pki3hack.c b/security/nss/lib/pki/pki3hack.c index 23e898588..00831c386 100644 --- a/security/nss/lib/pki/pki3hack.c +++ b/security/nss/lib/pki/pki3hack.c @@ -827,11 +827,9 @@ fill_CERTCertificateFields(NSSCertificate *c, CERTCertificate *cc, PRBool forced NSSCryptoContext *context = c->object.cryptoContext; nssCryptokiInstance *instance = get_cert_instance(c); NSSUTF8 *stanNick; - if (instance) { - stanNick = instance->label; - } else if (context) { - stanNick = c->object.tempName; - } + /* must live somewhere */ + PORT_Assert(instance != NULL || context != NULL); + stanNick = instance ? instance->label : c->object.tempName; /* fill other fields needed by NSS3 functions using CERTCertificate */ if ((!cc->nickname && stanNick) || forced) { PRStatus nssrv; -- cgit v1.2.1