summaryrefslogtreecommitdiffstats
path: root/nss_engine_pphrase.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss_engine_pphrase.c')
-rw-r--r--nss_engine_pphrase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss_engine_pphrase.c b/nss_engine_pphrase.c
index 8ba489a..981ebff 100644
--- a/nss_engine_pphrase.c
+++ b/nss_engine_pphrase.c
@@ -126,7 +126,7 @@ static char * nss_password_prompt(PK11SlotInfo *slot, PRBool retry, void *arg)
}
}
- if (parg->mc->nInitCount == 1) {
+ if ((parg->mc->nInitCount == 1) && (passwd != NULL)) {
char buf[1024];
apr_status_t rv;
apr_size_t nBytes = 1024;