From 03cc3b153ee3226d36b7780c49e90074cc9a0c24 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 4 May 1990 15:45:44 +0000 Subject: [PATCH] copy addresses as well git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@730 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/copy_creds.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.26.2