Fix bug 200224. Eliminate null ptr dereference.

This commit is contained in:
nelsonb%netscape.com 2003-04-02 23:24:01 +00:00
parent 6600d04115
commit e2e7547270

View File

@ -2719,7 +2719,7 @@ main(int argc, char **argv)
if (certutil.commands[cmd_CheckCertValidity].activated) {
/* XXX temporary hack for fips - must log in to get priv key */
if (certutil.options[opt_VerifySig].activated) {
if (PK11_NeedLogin(slot))
if (slot && PK11_NeedLogin(slot))
PK11_Authenticate(slot, PR_TRUE, &pwdata);
}
rv = ValidateCert(certHandle, name,