From: Ken Raeburn Date: Fri, 19 Nov 2004 21:39:48 +0000 (+0000) Subject: * cc_mslsa.c (MSCredToMITCred): Don't create an empty array for addresses, just X-Git-Tag: ms-bug-test-20060525~449 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abdc66e87e38ba23fd0b73dc6ad3f1175bab11ac;p=krb5.git * cc_mslsa.c (MSCredToMITCred): Don't create an empty array for addresses, just use a null pointer now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16895 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index c9e2972d5..4832f9389 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -1,3 +1,8 @@ +2004-11-19 Ken Raeburn + + * cc_mslsa.c (MSCredToMITCred): Don't create an empty array for + addresses, just use a null pointer now. + 2004-11-16 Ken Raeburn * cc_retr.c (krb5_cc_retrieve_cred_seq): Temporarily clear the diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c index 82f4a86ee..fae15b877 100644 --- a/src/lib/krb5/ccache/cc_mslsa.c +++ b/src/lib/krb5/ccache/cc_mslsa.c @@ -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); }