From 2c5616421b07177c5bb14084302e993bc2a9e8dc Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 3 May 2004 05:15:53 +0000 Subject: [PATCH] use correct address for SADB_EXT_ADDRESS_DST in key_do_allocsa_policy (was using src instead of dst) Submitted by: Bjoern A. Zeeb Obtained from: KAME MFC after: 1 day --- sys/netipsec/key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index 10b219f5baac..eed78c9cc30a 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -947,8 +947,8 @@ key_do_allocsa_policy(struct secashead *sah, u_int state) /* set sadb_address for saidx's. */ m = key_setsadbaddr(SADB_EXT_ADDRESS_DST, - &d->sah->saidx.src.sa, - d->sah->saidx.src.sa.sa_len << 3, + &d->sah->saidx.dst.sa, + d->sah->saidx.dst.sa.sa_len << 3, IPSEC_ULPROTO_ANY); if (!m) goto msgfail;