get_in_tkt.c: Initialize as_reply so that an error in one of the early
authorRichard Basch <probe@mit.edu>
Thu, 13 Feb 1997 19:35:39 +0000 (19:35 +0000)
committerRichard Basch <probe@mit.edu>
Thu, 13 Feb 1997 19:35:39 +0000 (19:35 +0000)
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

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/get_in_tkt.c

index a69c89492117e6209bf2399186ed79ed6575bd70..9b96516e16bf7981a3c4f309f34d62dc2cc9bde9 100644 (file)
@@ -1,9 +1,15 @@
+Thu Feb 13 14:17:00 1997  Richard Basch  <basch@lehman.com>
+
+       * 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  <tlyu@mit.edu>
 
        * 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  <epeisach@mit.edu>
 
index 8d42b2de81fbb11b83b9aa876724c73c495402db..38a6ec016815820ff6014a8d9f4f56e88f1a13ad 100644 (file)
@@ -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;