* sendto_kdc.c (merge_addrlists): Truncate source address list after copying
authorKen Raeburn <raeburn@mit.edu>
Sat, 24 Aug 2002 00:01:01 +0000 (00:01 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 24 Aug 2002 00:01:01 +0000 (00:01 +0000)
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
src/lib/krb5/os/sendto_kdc.c

index b5bdd71ae6010c080d5d60bd5cc9cf20d98cb41d..fbb08f6e0bd9a2ee00ecba3a89d6f6e64c88efa6 100644 (file)
@@ -1,5 +1,8 @@
 2002-08-23  Ken Raeburn  <raeburn@mit.edu>
 
+       * 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  <raeburn@mit.edu>
index 2bebcb8b5ac91715453655831a0a65cfcd7853d4..fff77c1df056cd87e9538ef18c083f73f7f2a55f 100644 (file)
@@ -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++)