Message ID | 20220316121142.3142336-3-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4db4075f92af2b28f415fc979ab626e6b37d67b6 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | pull request (net): ipsec 2022-03-16 | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Guessing tree name failed - patch did not apply |
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index b0ffbcd5432d..55d604c9b3b3 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -812,8 +812,7 @@ int esp6_input_done2(struct sk_buff *skb, int err) struct tcphdr *th; offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); - - if (offset < 0) { + if (offset == -1) { err = -EINVAL; goto out; }