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
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);