krb5 commit: Reset the prompt_types list after calling prompter
Greg Hudson
ghudson at MIT.EDU
Mon Oct 15 11:40:37 EDT 2012
https://github.com/krb5/krb5/commit/15c8543449010af7ca846fbf1efef699b01792e0
commit 15c8543449010af7ca846fbf1efef699b01792e0
Author: Nalin Dahyabhai <nalin at redhat.com>
Date: Tue Oct 9 13:38:48 2012 -0400
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 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 a148049..2f93a86 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. */
More information about the cvs-krb5
mailing list