From 56a3f3fe547ed6ff4334e3ca00f99fc5aa58907a Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 29 Apr 1995 04:16:10 +0000 Subject: [PATCH] kdc_util.c (kdc_process_tgs_req): Make sure apreq->ticket gets freed, since it isn't being passed back to the caller (anymore). do_tgs_req.c (process_tgs_req): Free header_ticket when we're done with it. (Prevents massive memory leak). Makefile.in (depend): Use $(LD) instead of $(CC) so that we can do purify checking. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5651 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 14 ++++++++++++++ src/kdc/Makefile.in | 2 +- src/kdc/do_tgs_req.c | 2 ++ src/kdc/kdc_util.c | 1 - 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 074672fb8..5df632c7e 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,17 @@ +Sat Apr 29 00:13:16 1995 Theodore Y. Ts'o + + * kdc_util.c (kdc_process_tgs_req): Make sure apreq->ticket gets + freed, since it isn't being passed back to the caller + (anymore). + +Fri Apr 28 21:28:45 1995 Theodore Y. Ts'o + + * do_tgs_req.c (process_tgs_req): Free header_ticket when we're + done with it. (Prevents massive memory leak). + + * Makefile.in (depend): Use $(LD) instead of $(CC) so that we can + do purify checking. + Fri Apr 28 18:05:52 1995 Mark Eichin * Makefile.in (KLIB): put KRB4_LIB inside KLIB. diff --git a/src/kdc/Makefile.in b/src/kdc/Makefile.in index a179a999a..8b4fa1076 100644 --- a/src/kdc/Makefile.in +++ b/src/kdc/Makefile.in @@ -54,7 +54,7 @@ kdc5_err.h: kdc5_err.et kdc5_err.o: kdc5_err.h krb5kdc: $(OBJS) $(KDBDEPLIB) $(DEPKLIB) - $(CC) $(CFLAGS) -o krb5kdc $(OBJS) $(KDBLIB) $(KLIB) $(LIBS) + $(LD) $(CFLAGS) -o krb5kdc $(OBJS) $(KDBLIB) $(KLIB) $(LIBS) install:: $(INSTALL_PROGRAM) krb5kdc ${DESTDIR}$(SERVER_BINDIR)/krb5kdc diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index 723961c26..a25062f15 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -632,6 +632,8 @@ cleanup: fromstring, response); } + if (header_ticket) + krb5_free_ticket(kdc_context, header_ticket); if (request) krb5_free_kdc_req(kdc_context, request); if (cname) diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index 96e813432..ef0b402d1 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -292,7 +292,6 @@ cleanup_auth_context: krb5_auth_con_free(kdc_context, auth_context); cleanup: - apreq->ticket = 0; /* Caller will free the ticket */ krb5_free_ap_req(kdc_context, apreq); return retval; } -- 2.26.2