From b5c8e24b0e2e23f5240084b85731639add03c4b9 Mon Sep 17 00:00:00 2001 From: Moritz Jodeit Date: Wed, 20 Jul 2005 16:50:44 +0000 Subject: revert one TAILQ_FOREACH conversion from r1.112 which was wrong and broke some isakmpd setups. ok hshoexer@ --- sbin/isakmpd/message.c | 5 +++-- 1 file 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; -- cgit v1.2.3