In FREE_SET_DATA, reset the current count as well
authorKen Raeburn <raeburn@mit.edu>
Sat, 12 Jul 2008 01:15:25 +0000 (01:15 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 12 Jul 2008 01:15:25 +0000 (01:15 +0000)
ticket: 6019
state: open

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

src/kdc/network.c

index 9db82d08d3550fcbb1ceb43945c0429f11c77aad..bfb03a9d2721cb9ec587a12caaa79fd9d4ec0808 100644 (file)
@@ -239,7 +239,7 @@ struct connection {
   (set.data[idx] = set.data[--set.n], 0)
 
 #define FREE_SET_DATA(set) \
-  (free(set.data), set.data = 0, set.max = 0)
+  (free(set.data), set.data = 0, set.max = 0, set.n = 0)
 
 
 /* Set<struct connection *> connections; */