Skip to contentSkip to conversation

: Fix ip6tables ESP matching with "-p all"

PATCH In review Patrick McHardy 1 participant 1 message Jan 11, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 : Fix ip6tables ESP matching with "-p all"

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/01/11 03:44:14+01:00 [email protected]
# [NETFILTER]: Fix ip6tables ESP matching with "-p all"
#
# Signed-off-by: Patrick McHardy <[email protected]>
#

# net/ipv6/netfilter/ip6_tables.c
#   2005/01/11 03:44:07+01:00 [email protected] +1 -1
#   [NETFILTER]: Fix ip6tables ESP matching with "-p all"
#   
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
diff -Nru a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
--- a/net/ipv6/netfilter/ip6_tables.c	2005-01-11 13:39:53 +01:00
+++ b/net/ipv6/netfilter/ip6_tables.c	2005-01-11 13:39:53 +01:00
@@ -234,7 +234,7 @@
 			 * we will change the return 0 to 1*/
 			if ((currenthdr == IPPROTO_NONE) || 
 				(currenthdr == IPPROTO_ESP))
-				return 0;
+				break;

hp = skb_header_pointer(skb, ptr, sizeof(_hdr), &_hdr); BUG_ON(hp == NULL);