summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2012-10-09 13:38:48 -0400
committerGreg Hudson <ghudson@mit.edu>2012-10-15 11:40:14 -0400
commit15c8543449010af7ca846fbf1efef699b01792e0 (patch)
tree200bd64144fb043becb106cd9a534479f0784f9f /src/plugins
parent815da88a734c8a721e94fe0979ee5789b4576d10 (diff)
downloadkrb5-15c8543449010af7ca846fbf1efef699b01792e0.tar.gz
krb5-15c8543449010af7ca846fbf1efef699b01792e0.tar.xz
krb5-15c8543449010af7ca846fbf1efef699b01792e0.zip
Reset the prompt_types list after calling prompter
Reset the prompt_types list immediately after the prompter callback returns, as is done everywhere else.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/preauth/pkinit/pkinit_crypto_nss.c1
1 files changed, 1 insertions, 0 deletions
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. */