From 2270e15f60ea19ff6ed41de62ae5fab0f2bc8482 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Sun, 28 Apr 1996 14:22:54 +0000 Subject: [PATCH] Fixed a potentional null dereference git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7860 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 4 ++++ src/lib/krb5/krb/fwd_tgt.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 75b25df1b..c9985e7ca 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,7 @@ +Sat Apr 27 19:14:21 1996 Richard Basch + + * fwd_tgt.c (krb5_fwd_tgt_creds): fixed a possible null dereference. + Wed Apr 17 14:22:10 1996 Theodore Y. Ts'o * conv_princ.c: Added ftp and ecat to the list of services which diff --git a/src/lib/krb5/krb/fwd_tgt.c b/src/lib/krb5/krb/fwd_tgt.c index 9f57de431..6e10ad2ee 100644 --- a/src/lib/krb5/krb/fwd_tgt.c +++ b/src/lib/krb5/krb/fwd_tgt.c @@ -125,7 +125,8 @@ krb5_fwd_tgt_creds(context, auth_context, rhost, client, server, cc, krb5_free_creds(context, pcreds); if (retval) { - krb5_free_data(context, scratch); + if (scratch) + krb5_free_data(context, scratch); } else { *outbuf = *scratch; krb5_xfree(scratch); -- 2.26.2