From f469d77cc53c43a2e85f80ab3cf68caa82c4d24b Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 25 Apr 2012 17:20:20 +0000 Subject: [PATCH] Clear preauth use counts for each AS request Initialize use_count fields in krb5_preauth_request_context_init, which is invoked before each AS request. Previously they were initialized only in krb5_init_preauth_context, which is only invoked once per krb5 library context. ticket: 7119 target_version: 1.10.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25822 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/preauth2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 06a135a36..5bc83086a 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -281,6 +281,7 @@ krb5_preauth_request_context_init(krb5_context context) if (context->preauth_context == NULL) return; for (i = 0; i < context->preauth_context->n_modules; i++) { + context->preauth_context->modules[i].use_count = 0; mod = &context->preauth_context->modules[i]; if (mod->client_req_init != NULL) mod->client_req_init(context, mod->moddata, mod->modreq_p); -- 2.26.2