svn rev #24633: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Sun Feb 13 13:48:07 EST 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=24633
Commit By: ghudson
Log Message:
ticket: 6855

Reposition a trace call which was dereferencing freed memory after
r24616.



Changed Files:
U   trunk/src/lib/krb5/krb/rd_req_dec.c
Modified: trunk/src/lib/krb5/krb/rd_req_dec.c
===================================================================
--- trunk/src/lib/krb5/krb/rd_req_dec.c	2011-02-09 23:52:47 UTC (rev 24632)
+++ trunk/src/lib/krb5/krb/rd_req_dec.c	2011-02-13 18:48:06 UTC (rev 24633)
@@ -146,11 +146,12 @@
     if (ret)
         return ret;
     ret = try_one_entry(context, req, &ent, keyblock_out);
+    if (ret == 0)
+        TRACE_RD_REQ_DECRYPT_SPECIFIC(context, ent.principal, &ent.key);
     (void)krb5_free_keytab_entry_contents(context, &ent);
     if (ret)
         return ret;
 
-    TRACE_RD_REQ_DECRYPT_SPECIFIC(context, ent.principal, &ent.key);
     return 0;
 }
 




More information about the cvs-krb5 mailing list