From a5da4e5b1e219f9a0346cf0bbeec08dba57431b4 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 24 Aug 2002 00:01:01 +0000 Subject: [PATCH] * sendto_kdc.c (merge_addrlists): Truncate source address list after copying its data into the destination list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14762 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 3 +++ src/lib/krb5/os/sendto_kdc.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index b5bdd71ae..fbb08f6e0 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,5 +1,8 @@ 2002-08-23 Ken Raeburn + * sendto_kdc.c (merge_addrlists): Truncate source address list + after copying its data into the destination list. + * Makefile.in: Change $(S)=>/ and $(U)=>.. globally. 2002-08-22 Ken Raeburn diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index 2bebcb8b5..fff77c1df 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -205,6 +205,7 @@ merge_addrlists (struct addrlist *dest, struct addrlist *src) src->addrs[i] = 0; } dest->naddrs += i; + src->naddrs = 0; dprint("\tout: "); for (i = 0; i < dest->naddrs; i++) -- 2.26.2