krb5 commit [krb5-1.14]: Fix KDC memory leak on failed S4U2Proxy requests

Tom Yu tlyu at mit.edu
Tue Apr 5 23:02:55 EDT 2016


https://github.com/krb5/krb5/commit/8c505c46f4ebce10adae7e1ba671a3ec6abd5e39
commit 8c505c46f4ebce10adae7e1ba671a3ec6abd5e39
Author: Greg Hudson <ghudson at mit.edu>
Date:   Thu Feb 25 11:27:40 2016 -0500

    Fix KDC memory leak on failed S4U2Proxy requests
    
    Make sure to release stkt_server in process_tgs_req() if we fail
    before its disposition is determined.  Reported by Will Fiveash.
    
    (cherry picked from commit 194641a8ad7aecc6bc1d4848742c14569f14b900)
    
    ticket: 8363
    version_fixed: 1.14.2

 src/kdc/do_tgs_req.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c
index a52c960..547a414 100644
--- a/src/kdc/do_tgs_req.c
+++ b/src/kdc/do_tgs_req.c
@@ -869,6 +869,7 @@ cleanup:
     if (state)
         kdc_free_rstate(state);
     krb5_db_free_principal(kdc_context, server);
+    krb5_db_free_principal(kdc_context, stkt_server);
     krb5_db_free_principal(kdc_context, header_server);
     krb5_db_free_principal(kdc_context, client);
     krb5_db_free_principal(kdc_context, local_tgt_storage);


More information about the cvs-krb5 mailing list