* kinit.c (k5_kinit): Don't free addresses after calling
authorKen Raeburn <raeburn@mit.edu>
Thu, 1 Jul 2004 21:02:45 +0000 (21:02 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 1 Jul 2004 21:02:45 +0000 (21:02 +0000)
krb5_get_init_creds_opt_set_address_list; it doesn't make a copy.

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

src/clients/kinit/ChangeLog
src/clients/kinit/kinit.c

index e595c7a3a1c3f7282aeb88cfea0c4112a07d3a88..63d53ffa947f822814a4f5cf7f1c7bacc2da9613 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-01  Ken Raeburn  <raeburn@mit.edu>
+
+       * kinit.c (k5_kinit): Don't free addresses after calling
+       krb5_get_init_creds_opt_set_address_list; it doesn't make a copy.
+
 2004-06-16  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (all-mac): Target deleted.
index 422c87d7de701054f718cfd70f2d3169ae99fa41..6ffebadd43e899a994a5c5cf64e23eeb7a2f624a 100644 (file)
@@ -770,7 +770,6 @@ k5_kinit(opts, k5)
            goto cleanup;
        }
        krb5_get_init_creds_opt_set_address_list(&options, addresses);
-       krb5_free_addresses(k5->ctx, addresses);
     }
     if (opts->no_addresses)
        krb5_get_init_creds_opt_set_address_list(&options, NULL);