krb5 commit [krb5-1.10]: Clear preauth use counts for each AS request

Tom Yu tlyu at MIT.EDU
Tue May 15 18:27:12 EDT 2012


https://github.com/krb5/krb5/commit/276b44d7bd9ed05d5618b287b4e601d1a872a067
commit 276b44d7bd9ed05d5618b287b4e601d1a872a067
Author: Greg Hudson <ghudson at mit.edu>
Date:   Wed Apr 25 17:20:20 2012 +0000

    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.
    
    (cherry picked from commit f469d77cc53c43a2e85f80ab3cf68caa82c4d24b)
    
    ticket: 7119
    version_fixed: 1.10.2
    status: resolved

 src/lib/krb5/krb/preauth2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c
index 0c8ead5..d43c20e 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);


More information about the cvs-krb5 mailing list