pex-msg: fix memory leak on fread fail in pex_msg_update_request_init
[project/unetd.git] / mss-bpf.c
index 26f13ae3cabd979f2c5b29e925f7719012aa3221..eae1ef27c741debd004641d616ccd2446886a812 100644 (file)
--- a/mss-bpf.c
+++ b/mss-bpf.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2021 Felix Fietkau <nbd@nbd.name>
  */
@@ -81,7 +81,6 @@ SEC("tc")
 int mssfix(struct __sk_buff *skb)
 {
        struct skb_parser_info info;
-       u32 offset_eth;
        __u16 mss;
        int type;
 
@@ -92,7 +91,6 @@ int mssfix(struct __sk_buff *skb)
        skb_parse_vlan(&info);
        skb_parse_vlan(&info);
 
-       offset_eth = info.offset;
        if (!skb_parse_ipv4(&info, 60) && !skb_parse_ipv6(&info, 60))
                return TC_ACT_UNSPEC;