Message ID | 1393325651-11236-1-git-send-email-hans@schillstrom.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
Hello. On 25-02-2014 14:54, Hans Schillstrom wrote: > The commit 9195bb8e381d81d5a315f911904cdf0cfcc919b8 Please also specify that commit's summary line in parens. > broke ipv6_find_hdr() for ipvs and possible also nft_exthdr_eval() > This patch simple exit if specified header is found. s/exit/exits/. > Signed-off-by: Hans Schillstrom <hans@schillstrom.com> WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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; }
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@schillstrom.com> --- net/ipv6/exthdrs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)