From: Richard Basch Date: Sun, 28 Apr 1996 14:22:54 +0000 (+0000) Subject: Fixed a potentional null dereference X-Git-Tag: krb5-1.0-beta6~181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2270e15f60ea19ff6ed41de62ae5fab0f2bc8482;p=krb5.git Fixed a potentional null dereference git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7860 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);