From 211ce911d54b19971c181b448943c9921fa42f45 Mon Sep 17 00:00:00 2001 From: bms Date: Tue, 22 Jun 2004 17:17:44 +0000 Subject: Fix a paste-o in key_cmpspidx_withmask(). PR: misc/67013 Submitted by: Zhenmin --- sys/netipsec/key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netipsec/key.c') diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index eed78c9..2d34bc0 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -3874,8 +3874,8 @@ key_cmpspidx_withmask( * scope_id check. if sin6_scope_id is 0, we regard it * as a wildcard scope, which matches any scope zone ID. */ - if (spidx0->src.sin6.sin6_scope_id && - spidx1->src.sin6.sin6_scope_id && + if (spidx0->dst.sin6.sin6_scope_id && + spidx1->dst.sin6.sin6_scope_id && spidx0->dst.sin6.sin6_scope_id != spidx1->dst.sin6.sin6_scope_id) return 0; if (!key_bbcmp(&spidx0->dst.sin6.sin6_addr, -- cgit v1.1