From 99d1a909ebc8a2090e2906cdeca5064904577a18 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Thu, 7 Jun 2001 03:20:22 +0000 Subject: Correctly initialize the policy_id field on SA structures, such that failed SAs don't cause the default policy context to be free'ed (and thus cause no end of trouble in establishing further Phase 1 SAs) --- sbin/isakmpd/sa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/isakmpd/sa.c') diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c index f8e43ededf4..eff8ddaa113 100644 --- a/sbin/isakmpd/sa.c +++ b/sbin/isakmpd/sa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sa.c,v 1.42 2001/05/31 20:25:37 angelos Exp $ */ +/* $OpenBSD: sa.c,v 1.43 2001/06/07 03:20:21 angelos Exp $ */ /* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */ /* @@ -376,6 +376,7 @@ sa_create (struct exchange *exchange, struct transport *t) memcpy (sa->cookies, exchange->cookies, ISAKMP_HDR_COOKIES_LEN); memcpy (sa->message_id, exchange->message_id, ISAKMP_HDR_MESSAGE_ID_LEN); sa->doi = exchange->doi; + sa->policy_id = -1; if (sa->doi->sa_size) { -- cgit v1.2.3