krb5 commit: Fix KDC memory leak on failed S4U2Proxy requests
Greg Hudson
ghudson at mit.edu
Tue Mar 1 16:41:01 EST 2016
https://github.com/krb5/krb5/commit/194641a8ad7aecc6bc1d4848742c14569f14b900
commit 194641a8ad7aecc6bc1d4848742c14569f14b900
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.
ticket: 8363
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
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