From 15c8543449010af7ca846fbf1efef699b01792e0 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 9 Oct 2012 13:38:48 -0400 Subject: [PATCH] Reset the prompt_types list after calling prompter Reset the prompt_types list immediately after the prompter callback returns, as is done everywhere else. --- src/plugins/preauth/pkinit/pkinit_crypto_nss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c index a148049160..2f93a86e08 100644 --- a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c +++ b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c @@ -603,6 +603,7 @@ crypto_pwfn(const char *what, PRBool retry, void *arg) ret = (*id->pwcb_args.prompter)(id->pwcb_args.context, id->pwcb_args.prompter_data, what, answer, 1, &prompt); + (*k5int_set_prompt_types)(id->pwcb_args.context, NULL); answer = NULL; if ((ret == 0) && (reply.data != NULL)) { /* The result will be freed with PR_Free, so return a copy. */ -- 2.47.3