summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2005-07-20 16:50:44 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2005-07-20 16:50:44 +0000
commitb5c8e24b0e2e23f5240084b85731639add03c4b9 (patch)
tree2e08746da26882d88d27357165bb2c783da5a324
parent46977aad7743bfd836421c3ef3ce4c932d8d1598 (diff)
revert one TAILQ_FOREACH conversion from r1.112 which was
wrong and broke some isakmpd setups. ok hshoexer@
-rw-r--r--sbin/isakmpd/message.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c
index 36c5a6ffd94..d2d157267ea 100644
--- a/sbin/isakmpd/message.c
+++ b/sbin/isakmpd/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.113 2005/06/26 20:49:24 hshoexer Exp $ */
+/* $OpenBSD: message.c,v 1.114 2005/07/20 16:50:43 moritz Exp $ */
/* $EOM: message.c,v 1.156 2000/10/10 12:36:39 provos Exp $ */
/*
@@ -2118,7 +2118,8 @@ message_negotiate_sa(struct message *msg, int (*validate)(struct exchange *,
*/
sa = TAILQ_FIRST(&exchange->sa_list);
- TAILQ_FOREACH(tp, &msg->payload[ISAKMP_PAYLOAD_TRANSFORM], link) {
+ for (tp = payload_first(msg, ISAKMP_PAYLOAD_TRANSFORM); tp;
+ tp = next_tp) {
propp = tp->context;
sap = propp->context;
sap->flags |= PL_MARK;