summaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorHerbert Xu2007-12-13 18:30:59 +0100
committerDavid S. Miller2008-01-28 23:57:54 +0100
commitaef21785995778f710a60b563e03bf53ba455a47 (patch)
tree5deeca8578e5b8d0198144b9dc2b281f8789a3df /net/ipv6/route.c
parent[DCCP]: Ignore feature negotiation on Data packets (diff)
downloadkernel-qcow2-linux-aef21785995778f710a60b563e03bf53ba455a47.tar.gz
kernel-qcow2-linux-aef21785995778f710a60b563e03bf53ba455a47.tar.xz
kernel-qcow2-linux-aef21785995778f710a60b563e03bf53ba455a47.zip
[IPSEC]: Fix zero return value in xfrm_lookup on error
Further testing shows that my ICMP relookup patch can cause xfrm_lookup to return zero on error which isn't very nice since it leads to the caller dying on null pointer dereference. The bug is due to not setting err to ENOENT just before we leave xfrm_lookup in case of no policy. This patch moves the err setting to where it should be. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
0 files changed, 0 insertions, 0 deletions