* cc_mslsa.c (MSCredToMITCred): Don't create an empty array for addresses, just
authorKen Raeburn <raeburn@mit.edu>
Fri, 19 Nov 2004 21:39:48 +0000 (21:39 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 19 Nov 2004 21:39:48 +0000 (21:39 +0000)
use a null pointer now.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16895 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_mslsa.c

index c9e2972d5c40d023c9501bed5a5e32efce12b26c..4832f9389bfc02c3f5d09a916c7f64be5885d2d5 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-19  Ken Raeburn  <raeburn@mit.edu>
+
+       * cc_mslsa.c (MSCredToMITCred): Don't create an empty array for
+       addresses, just use a null pointer now.
+
 2004-11-16  Ken Raeburn  <raeburn@mit.edu>
 
        * cc_retr.c (krb5_cc_retrieve_cred_seq): Temporarily clear the
index 82f4a86ee0b487eaf4962bbaf34e86b72c644038..fae15b877e1b6ae256b3006760c9dced70ac8287 100644 (file)
@@ -400,12 +400,7 @@ MSCredToMITCred(KERB_EXTERNAL_TICKET *msticket, UNICODE_STRING ClientRealm,
     creds->times.starttime=FileTimeToUnixTime(&msticket->StartTime);
     creds->times.endtime=FileTimeToUnixTime(&msticket->EndTime);
     creds->times.renew_till=FileTimeToUnixTime(&msticket->RenewUntil);
-
-    /* MS Tickets are addressless.  MIT requires an empty address
-     * not a NULL list of addresses.
-     */
-    creds->addresses = (krb5_address **)malloc(sizeof(krb5_address *));
-    memset(creds->addresses, 0, sizeof(krb5_address *));
+    creds->addresses = NULL;
 
     MSTicketToMITTicket(msticket, context, &creds->ticket);
 }