Initialize addrs to 0 so that we don't try to free stack garbage on an
authorTheodore Tso <tytso@mit.edu>
Thu, 11 Jan 1996 02:57:32 +0000 (02:57 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 11 Jan 1996 02:57:32 +0000 (02:57 +0000)
error.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7294 dc483132-0cff-0310-8789-dd5450dbe970

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

index cb5bf1f6b692fb6fb528e00f22b018bc1faedd60..76e556f59057518216c4e0dd57c4078a1adeba0e 100644 (file)
@@ -1,5 +1,8 @@
 Wed Jan 10 21:01:36 1996  Theodore Y. Ts'o  <tytso@dcl>
 
+       * fwd_tgt.c (krb5_fwd_tgt_creds): Initialize addrs to 0 so that we
+               don't try to free stack garbage on an error.
+
        * krbconfig.c, Makefile.in: Removed krbconfig.c; it contained
                global variables which are no longer used.
 
index 762a41e33f5e11c40d211585baa5adb058d519eb..0ffdde6cd1c8bc392926c0e81dcdf2abc2ccada7 100644 (file)
@@ -42,8 +42,8 @@ krb5_fwd_tgt_creds(context, auth_context, rhost, client, server, cc,
     krb5_data *outbuf;
 {
     krb5_replay_data replaydata;
-    krb5_data * scratch;
-    krb5_address **addrs;
+    krb5_data * scratch = 0;
+    krb5_address **addrs = 0;
     krb5_error_code retval;
     krb5_creds creds, tgt;
     krb5_creds *pcreds;