Fixed a potentional null dereference
authorRichard Basch <probe@mit.edu>
Sun, 28 Apr 1996 14:22:54 +0000 (14:22 +0000)
committerRichard Basch <probe@mit.edu>
Sun, 28 Apr 1996 14:22:54 +0000 (14:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7860 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/fwd_tgt.c

index 75b25df1b8d2036a333b28e48e7e45df0d4b12b6..c9985e7cab23441802a9382b54e3eb6e8a869b19 100644 (file)
@@ -1,3 +1,7 @@
+Sat Apr 27 19:14:21 1996  Richard Basch  <basch@lehman.com>
+
+       * fwd_tgt.c (krb5_fwd_tgt_creds): fixed a possible null dereference.
+
 Wed Apr 17 14:22:10 1996  Theodore Y. Ts'o  <tytso@mit.edu>
 
        * conv_princ.c: Added ftp and ecat to the list of services which
index 9f57de431b0ee2a290ffdf0d794dcc56b7400b13..6e10ad2ee7423ea6e7e1ba9ff2ade683b11e6729 100644 (file)
@@ -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);