From 9ac334423e6875092bb10d7d561c5fae68290f09 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 29 Aug 1997 20:45:08 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/krb/ChangeLog | 6 ++++++ src/lib/krb5/krb/get_in_tkt.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.26.2