diff options
author | ian.mcgreer%sun.com <devnull@localhost> | 2002-03-26 22:23:28 +0000 |
---|---|---|
committer | ian.mcgreer%sun.com <devnull@localhost> | 2002-03-26 22:23:28 +0000 |
commit | 72d25599beac76d22b82a8b553e0a7066c3ed00e (patch) | |
tree | 1250306a74f341b8325cdd2447c93b7699d77a0c | |
parent | 427ef1758362384d9a906d6a4dd7cf200581b721 (diff) | |
download | nss-hg-72d25599beac76d22b82a8b553e0a7066c3ed00e.tar.gz |
bug 123296, infinite loop in signtool when incorrect password given at command line
-rw-r--r-- | security/nss/cmd/signtool/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/nss/cmd/signtool/util.c b/security/nss/cmd/signtool/util.c index 6d92bbba2..321fe6859 100644 --- a/security/nss/cmd/signtool/util.c +++ b/security/nss/cmd/signtool/util.c @@ -460,6 +460,9 @@ char * pk11_password_hardcode(PK11SlotInfo *slot, PRBool retry, void *arg) { char *pw; + if (retry) { + return NULL; /* the password is incorrect, fail */ + } pw = password ? PORT_Strdup (password) : NULL; /* XXX don't do this, or FIPS won't work */ /*password = NULL;*/ |