summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-03-14 10:33:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-03-14 10:33:17 +0000
commit7ad4dfcfa99eb62b29c962ac9ebe4987dc0b3e21 (patch)
tree2ea69016673ca52563f848cbed357e5df294d6b3
parent2f1427fdd4a6057612b3ebadf344b16bfb2bbd5a (diff)
incorrect TAILQ management; chris@stallion.oz.au, pr#1723
-rw-r--r--sbin/isakmpd/connection.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/isakmpd/connection.c b/sbin/isakmpd/connection.c
index 53130e90fa5..0c6a7a06620 100644
--- a/sbin/isakmpd/connection.c
+++ b/sbin/isakmpd/connection.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: connection.c,v 1.13 2001/01/27 12:03:31 niklas Exp $ */
+/* $OpenBSD: connection.c,v 1.14 2001/03/14 10:33:16 deraadt Exp $ */
/* $EOM: connection.c,v 1.28 2000/11/23 12:21:18 niklas Exp $ */
/*
@@ -461,11 +461,10 @@ connection_reinit (void)
/* Remove all present connections. */
- for (conn = TAILQ_FIRST (&connections); conn; conn = TAILQ_NEXT (conn, link))
+ while (conn = TAILQ_FIRST (&connections))
connection_teardown (conn->name);
- for (pconn = TAILQ_FIRST (&connections_passive); pconn;
- pconn = TAILQ_NEXT (pconn, link))
+ while (pconn = TAILQ_FIRST (&connections_passive))
connection_passive_teardown (pconn->name);
/* Setup new connections, as the (new) config directs. */