[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1393325651-11236-1-git-send-email-hans@schillstrom.com>
Date: Tue, 25 Feb 2014 11:54:11 +0100
From: Hans Schillstrom <hans@...illstrom.com>
To: netdev@...r.kernel.org, davem@...emloft.net, ja@....bg,
aatteka@...ira.com, kaber@...sh.net, ard@...egraafnet.nl
Cc: Hans Schillstrom <hans@...illstrom.com>
Subject: [PATCH 1/1] ipv6: ipv6_find_hdr restore prev functionality
The commit 9195bb8e381d81d5a315f911904cdf0cfcc919b8
broke ipv6_find_hdr() for ipvs and possible also nft_exthdr_eval()
This patch simple exit if specified header is found.
Signed-off-by: Hans Schillstrom <hans@...illstrom.com>
---
net/ipv6/exthdrs_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/exthdrs_core.c b/net/ipv6/exthdrs_core.c
index 140748d..8af3eb5 100644
--- a/net/ipv6/exthdrs_core.c
+++ b/net/ipv6/exthdrs_core.c
@@ -212,7 +212,7 @@ int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
found = (nexthdr == target);
if ((!ipv6_ext_hdr(nexthdr)) || nexthdr == NEXTHDR_NONE) {
- if (target < 0)
+ if (target < 0 || found)
break;
return -ENOENT;
}
--
1.7.11.7
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists