Clear preauth use counts for each AS request
authorGreg Hudson <ghudson@mit.edu>
Wed, 25 Apr 2012 17:20:20 +0000 (17:20 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 25 Apr 2012 17:20:20 +0000 (17:20 +0000)
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

index 06a135a36137427f9f1607ab05d3b9d2878b1c7e..5bc83086a2edd8bb1ea035558db2c775bf541a9d 100644 (file)
@@ -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);