]> err.no Git - linux-2.6/commit
[NETFILTER]: Fix bridge netfilter related in xfrm_lookup
authorPatrick McHardy <kaber@trash.net>
Tue, 21 Feb 2006 21:37:35 +0000 (13:37 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 24 Feb 2006 00:10:51 +0000 (16:10 -0800)
commit42cf93cd464e0df3c85d298c647411bae6d99e6e
treef68f155f6eedbac8ac8c32c8c947d5a2f6cb2033
parenta80614d1adba903a1e5cb22bf14ebc640fc2ba4c
[NETFILTER]: Fix bridge netfilter related in xfrm_lookup

The bridge-netfilter code attaches a fake dst_entry with dst->ops == NULL
to purely bridged packets. When these packets are SNATed and a policy
lookup is done, xfrm_lookup crashes because it tries to dereference
dst->ops.

Change xfrm_lookup not to dereference dst->ops before checking for the
DST_NOXFRM flag and set this flag in the fake dst_entry.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netfilter.c
net/xfrm/xfrm_policy.c