From: Richard Basch Date: Thu, 13 Feb 1997 19:35:39 +0000 (+0000) Subject: get_in_tkt.c: Initialize as_reply so that an error in one of the early X-Git-Tag: krb5-1.1-beta1~1330 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d77459582102510608798136881228d7c597c90;p=krb5.git get_in_tkt.c: Initialize as_reply so that an error in one of the early calls (ie. krb5_os_localaddr) will not cause the cleanup procedure to try to free a garbage pointer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9861 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index a69c89492..9b96516e1 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,9 +1,15 @@ +Thu Feb 13 14:17:00 1997 Richard Basch + + * get_in_tkt.c (krb5_get_in_tkt): Initialize as_reply; if + krb5_os_localaddr() returns an error, the cleanup + routine may try to free a garbage pointer (as_reply). + Wed Feb 12 20:47:30 1997 Tom Yu * fwd_tgt.c (krb5_fwd_tgt_creds): Use the client's realm rather - than the server's realm for constructing the tgs principal. - Remove TC_MATCH_SRV_NAMEONLY from call to retrieve_cred() because - we want to get an exact match. + than the server's realm for constructing the tgs principal. + Remove TC_MATCH_SRV_NAMEONLY from call to retrieve_cred() + because we want to get an exact match. Mon Feb 10 10:41:36 1997 Ezra Peisach diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 8d42b2de8..38a6ec016 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -383,7 +383,7 @@ krb5_get_in_tkt(context, options, addrs, ktypes, ptypes, key_proc, keyseed, krb5_kdc_req request; krb5_pa_data **padata = 0; krb5_error * err_reply; - krb5_kdc_rep * as_reply; + krb5_kdc_rep * as_reply = 0; krb5_pa_data ** preauth_to_use = 0; int loopcount = 0; krb5_int32 do_more = 0;