From 821d17ec94ac0827cb0f2531716ab363069e2eb7 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 4 May 1990 15:45:17 +0000 Subject: [PATCH] remove addrs parameter add copy of addresses. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@729 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/gc_via_tgt.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/gc_via_tgt.c b/src/lib/krb5/krb/gc_via_tgt.c index fc9f3c921..c4e9db6a4 100644 --- a/src/lib/krb5/krb/gc_via_tgt.c +++ b/src/lib/krb5/krb/gc_via_tgt.c @@ -31,13 +31,11 @@ krb5_get_cred_via_tgt (DECLARG(krb5_creds *, tgt), DECLARG(const krb5_flags, kdcoptions), DECLARG(const krb5_enctype, etype), DECLARG(const krb5_cksumtype, sumtype), - DECLARG(krb5_address * const *, addrs), DECLARG(krb5_creds *, cred)) OLDDECLARG(krb5_creds *, tgt) OLDDECLARG(const krb5_flags, kdcoptions) OLDDECLARG(const krb5_enctype, etype) OLDDECLARG(const krb5_cksumtype, sumtype) -OLDDECLARG(krb5_address * const *, addrs) OLDDECLARG(krb5_creds *, cred) { krb5_error_code retval; @@ -68,7 +66,7 @@ OLDDECLARG(krb5_creds *, cred) if (retval = krb5_send_tgs(kdcoptions, &cred->times, etype, sumtype, cred->server, - addrs, + tgt->addresses, 0, /* no authorization data */ 0, /* no second ticket */ tgt, &tgsrep)) @@ -124,6 +122,11 @@ OLDDECLARG(krb5_creds *, cred) /* check compatibility here first ? XXX */ cred->ticket_flags = dec_rep->enc_part2->flags; cred->is_skey = FALSE; + if (retval = krb5_copy_addresses(dec_rep->enc_part2->caddrs, + &cred->addresses)) { + cleanup(); + return retval; + } retval = krb5_encode_ticket(dec_rep->ticket, &scratch); if (!retval) { -- 2.26.2