svn rev #23700: branches/krb5-1-8/src/lib/krb5/krb/

tlyu@MIT.EDU tlyu at MIT.EDU
Mon Feb 8 15:55:12 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23700
Commit By: tlyu
Log Message:
ticket: 6599
version_fixed: 1.8
status: resolved

pull up r23672 from trunk

 ------------------------------------------------------------------------
 r23672 | tlyu | 2010-01-26 13:43:29 -0500 (Tue, 26 Jan 2010) | 6 lines

 ticket: 6599
 target_version: 1.8
 tags: pullup

 Apply patch from Arlene Berry to plug a memory leak.


Changed Files:
U   branches/krb5-1-8/src/lib/krb5/krb/rd_req_dec.c
Modified: branches/krb5-1-8/src/lib/krb5/krb/rd_req_dec.c
===================================================================
--- branches/krb5-1-8/src/lib/krb5/krb/rd_req_dec.c	2010-02-05 21:46:35 UTC (rev 23699)
+++ branches/krb5-1-8/src/lib/krb5/krb/rd_req_dec.c	2010-02-08 20:55:12 UTC (rev 23700)
@@ -114,8 +114,10 @@
 
         while ((code = krb5_kt_next_entry(context, keytab,
                                           &ktent, &cursor)) == 0) {
-            if (ktent.key.enctype != req->ticket->enc_part.enctype)
+            if (ktent.key.enctype != req->ticket->enc_part.enctype) {
+                (void) krb5_free_keytab_entry_contents(context, &ktent);
                 continue;
+            }
 
             retval = krb5_decrypt_tkt_part(context, &ktent.key,
                                            req->ticket);




More information about the cvs-krb5 mailing list