correct fast ipsec logic: compare destination ip address against the

contents of the SA, not the SP

Submitted by:	"Doug Ambrisko" <ambrisko@verniernetworks.com>
This commit is contained in:
Sam Leffler 2002-11-08 23:11:02 +00:00
parent 955630483b
commit ab94ca3cec

View File

@ -637,7 +637,7 @@ skip_ipsec:
tdbi = (struct tdb_ident *)(mtag + 1);
if (tdbi->spi == sp->req->sav->spi &&
tdbi->proto == sp->req->sav->sah->saidx.proto &&
bcmp(&tdbi->dst, &sp->spidx.dst,
bcmp(&tdbi->dst, &sp->req->sav->sah->saidx.dst,
sizeof (union sockaddr_union)) == 0) {
/*
* No IPsec processing is needed, free