* get_in_tkt.c (krb5_get_in_tkt): Move nulling out of
authorTom Yu <tlyu@mit.edu>
Fri, 29 Aug 1997 20:45:08 +0000 (20:45 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 29 Aug 1997 20:45:08 +0000 (20:45 +0000)
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
src/lib/krb5/krb/get_in_tkt.c

index 1ed4b4bcf7ec0cbae07ac46f30aa511267f8e896..f6817f719090b41eee6cd7cd0e78dfe6c4a10175 100644 (file)
@@ -1,3 +1,9 @@
+Fri Aug 29 16:41:25 1997  Tom Yu  <tlyu@mit.edu>
+
+       * 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  <epeisach@mit.edu>
 
        * init_ctx.c (krb5_init_context): Initialize local variable ctx
index 38a6ec016815820ff6014a8d9f4f56e88f1a13ad..13146901692ea33a60e80842a95331272dad05b0 100644 (file)
@@ -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;