From: Theodore Tso Date: Thu, 11 Jan 1996 02:57:32 +0000 (+0000) Subject: Initialize addrs to 0 so that we don't try to free stack garbage on an X-Git-Tag: krb5-1.0-beta6~640 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee0054c6916cce3f05c311f755842984cf95270c;p=krb5.git Initialize addrs to 0 so that we don't try to free stack garbage on an error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7294 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index cb5bf1f6b..76e556f59 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,8 @@ Wed Jan 10 21:01:36 1996 Theodore Y. Ts'o + * 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. diff --git a/src/lib/krb5/krb/fwd_tgt.c b/src/lib/krb5/krb/fwd_tgt.c index 762a41e33..0ffdde6cd 100644 --- a/src/lib/krb5/krb/fwd_tgt.c +++ b/src/lib/krb5/krb/fwd_tgt.c @@ -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;