svn rev #22128: branches/fast/src/kdc/

hartmans@MIT.EDU hartmans at MIT.EDU
Thu Mar 26 01:36:51 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22128
Commit By: hartmans
Log Message:
Free the request in process_as_req for parallelism with TGS case. This permits the FAST code to free the outer request if FAST is in use.


Changed Files:
U   branches/fast/src/kdc/dispatch.c
U   branches/fast/src/kdc/do_as_req.c
Modified: branches/fast/src/kdc/dispatch.c
===================================================================
--- branches/fast/src/kdc/dispatch.c	2009-03-26 05:36:48 UTC (rev 22127)
+++ branches/fast/src/kdc/dispatch.c	2009-03-26 05:36:50 UTC (rev 22128)
@@ -92,11 +92,12 @@
 	    /*
 	     * setup_server_realm() sets up the global realm-specific data
 	     * pointer.
+	     * process_as_req frees the request if it is called
 	     */
 	    if (!(retval = setup_server_realm(as_req->server))) {
 		retval = process_as_req(as_req, pkt, from, response);
 	    }
-	    krb5_free_kdc_req(kdc_context, as_req);
+	    else 	    krb5_free_kdc_req(kdc_context, as_req);
 	}
     }
     else

Modified: branches/fast/src/kdc/do_as_req.c
===================================================================
--- branches/fast/src/kdc/do_as_req.c	2009-03-26 05:36:48 UTC (rev 22127)
+++ branches/fast/src/kdc/do_as_req.c	2009-03-26 05:36:50 UTC (rev 22128)
@@ -691,6 +691,7 @@
 
     krb5_free_data_contents(kdc_context, &e_data);
     kdc_free_rstate(state);
+    krb5_free_kdc_req(kdc_context, request);
     assert(did_log != 0);
     return errcode;
 }




More information about the cvs-krb5 mailing list