From c7f20cf271feefb1df1173a7964a3a4d47b58598 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 21 Sep 1999 23:00:16 +0000 Subject: [PATCH] * rc_dfl.c (krb5_rc_io_fetch): Set client and server fields to NULL after freeing them in the error case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11838 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/rcache/ChangeLog | 5 +++++ src/lib/krb5/rcache/rc_dfl.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/lib/krb5/rcache/ChangeLog b/src/lib/krb5/rcache/ChangeLog index 3917175a4..f1ded6710 100644 --- a/src/lib/krb5/rcache/ChangeLog +++ b/src/lib/krb5/rcache/ChangeLog @@ -1,3 +1,8 @@ +1999-09-21 Ken Raeburn + + * rc_dfl.c (krb5_rc_io_fetch): Set client and server fields to + NULL after freeing them in the error case. + Mon May 10 15:26:53 1999 Danilo Almeida * Makefile.in: Do win32 build in subdir. diff --git a/src/lib/krb5/rcache/rc_dfl.c b/src/lib/krb5/rcache/rc_dfl.c index 57679f369..a86f42e71 100644 --- a/src/lib/krb5/rcache/rc_dfl.c +++ b/src/lib/krb5/rcache/rc_dfl.c @@ -386,6 +386,7 @@ errout: krb5_xfree(rep->client); if (rep->server) krb5_xfree(rep->server); + rep->client = rep->server = 0; return retval; } -- 2.26.2