]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Reset the prompt_types list after calling prompter
authorNalin Dahyabhai <nalin@redhat.com>
Tue, 9 Oct 2012 17:38:48 +0000 (13:38 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 15 Oct 2012 15:40:14 +0000 (11:40 -0400)
Reset the prompt_types list immediately after the prompter callback
returns, as is done everywhere else.

src/plugins/preauth/pkinit/pkinit_crypto_nss.c

index a1480491600bd14db362b964367c676738b7547b..2f93a86e083d4950f9d3b31e4706632ae7e856b1 100644 (file)
@@ -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. */