From: John Kohl Date: Fri, 4 May 1990 15:45:44 +0000 (+0000) Subject: copy addresses as well X-Git-Tag: krb5-1.0-alpha2~672 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=03cc3b153ee3226d36b7780c49e90074cc9a0c24;p=krb5.git copy addresses as well git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@730 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/copy_creds.c b/src/lib/krb5/krb/copy_creds.c index cf1914575..6519221f3 100644 --- a/src/lib/krb5/krb/copy_creds.c +++ b/src/lib/krb5/krb/copy_creds.c @@ -47,8 +47,10 @@ krb5_creds **outcred; goto cleanclient; if (retval = krb5_copy_keyblock(&incred->keyblock, &tempcred->keyblock)) goto cleanserver; - if (retval = krb5_copy_data(&incred->ticket, &scratch)) + if (retval = krb5_copy_addresses(incred->addresses, &tempcred->addresses)) goto cleanblock; + if (retval = krb5_copy_data(&incred->ticket, &scratch)) + goto cleanaddrs; tempcred->ticket = *scratch; free((char *)scratch); if (retval = krb5_copy_data(&incred->second_ticket, @@ -63,6 +65,8 @@ krb5_creds **outcred; cleanticket: free(tempcred->ticket.data); + cleanaddrs: + krb5_free_address(tempcred->addresses); cleanblock: free((char *)tempcred->keyblock.contents); cleanserver: