From: Tom Yu Date: Fri, 29 Aug 1997 20:45:08 +0000 (+0000) Subject: * get_in_tkt.c (krb5_get_in_tkt): Move nulling out of X-Git-Tag: krb5-1.1-beta1~1039 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ac334423e6875092bb10d7d561c5fae68290f09;p=krb5.git * get_in_tkt.c (krb5_get_in_tkt): Move nulling out of request.padata before the os_localaddr call in order to avoid freeing a null pointer in the cleanup code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10186 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 1ed4b4bcf..f6817f719 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +Fri Aug 29 16:41:25 1997 Tom Yu + + * get_in_tkt.c (krb5_get_in_tkt): Move nulling out of + request.padata before the os_localaddr call in order to avoid + freeing a null pointer in the cleanup code. + Tue Aug 12 09:13:22 1997 Ezra Peisach * init_ctx.c (krb5_init_context): Initialize local variable ctx diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 38a6ec016..131469016 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -401,12 +401,12 @@ krb5_get_in_tkt(context, options, addrs, ktypes, ptypes, key_proc, keyseed, request.msg_type = KRB5_AS_REQ; request.addresses = 0; request.ktype = 0; + request.padata = 0; if (addrs) request.addresses = (krb5_address **) addrs; else if ((retval = krb5_os_localaddr(context, &request.addresses))) goto cleanup; - request.padata = 0; request.kdc_options = options; request.client = creds->client; request.server = creds->server;