From: Greg Hudson Date: Wed, 25 Apr 2012 17:20:20 +0000 (+0000) Subject: Clear preauth use counts for each AS request X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f469d77cc53c43a2e85f80ab3cf68caa82c4d24b;p=krb5.git 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 --- 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);