]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
TARPIT: mark oldtcphdr const
authorJan Engelhardt <jengelh@inai.de>
Sun, 8 Jul 2012 18:50:54 +0000 (20:50 +0200)
committerJan Engelhardt <jengelh@inai.de>
Sun, 8 Jul 2012 18:51:00 +0000 (20:51 +0200)
extensions/xt_TARPIT.c

index db24f909a3168542d4bd3260ca1acc39a38aa3c0..2c8dc6124b69b1ce723c514a036b140449190b31 100644 (file)
@@ -54,7 +54,8 @@
 static void tarpit_tcp(struct sk_buff *oldskb, unsigned int hook,
     unsigned int mode)
 {
-       struct tcphdr _otcph, *oth, *tcph;
+       struct tcphdr _otcph, *tcph;
+       const struct tcphdr *oth;
        unsigned int addr_type = RTN_UNSPEC;
        struct sk_buff *nskb;
        const struct iphdr *oldhdr;