summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-04-25 17:20:20 +0000
committerGreg Hudson <ghudson@mit.edu>2012-04-25 17:20:20 +0000
commitf469d77cc53c43a2e85f80ab3cf68caa82c4d24b (patch)
treef5f6fa9330076dcb88cd6b3c56f022aefec31e5a /src
parent77e492489beadd3869c82775903bd2649ccf3f8f (diff)
downloadkrb5-f469d77cc53c43a2e85f80ab3cf68caa82c4d24b.tar.gz
krb5-f469d77cc53c43a2e85f80ab3cf68caa82c4d24b.tar.xz
krb5-f469d77cc53c43a2e85f80ab3cf68caa82c4d24b.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/preauth2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c
index 06a135a361..5bc83086a2 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);