copy addresses as well
authorJohn Kohl <jtkohl@mit.edu>
Fri, 4 May 1990 15:45:44 +0000 (15:45 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 4 May 1990 15:45:44 +0000 (15:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@730 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/copy_creds.c

index cf1914575c7c30da3bc5c74041df24674be45d5e..6519221f3fea7e3eb363ddc7e1308618d66aa9dc 100644 (file)
@@ -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: