From: Patrick McHardy Date: Tue, 21 Feb 2006 21:37:35 +0000 (-0800) Subject: [NETFILTER]: Fix bridge netfilter related in xfrm_lookup X-Git-Tag: v2.6.16-rc5~54^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42cf93cd464e0df3c85d298c647411bae6d99e6e;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed