From: Nalin Dahyabhai Date: Tue, 9 Oct 2012 17:38:48 +0000 (-0400) Subject: Reset the prompt_types list after calling prompter X-Git-Tag: krb5-1.11-alpha1~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15c8543449010af7ca846fbf1efef699b01792e0;p=thirdparty%2Fkrb5.git Reset the prompt_types list after calling prompter Reset the prompt_types list immediately after the prompter callback returns, as is done everywhere else. --- 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. */