]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
Clear hotdrop before use
authorJan Engelhardt <jengelh@medozas.de>
Sun, 24 Aug 2008 20:44:07 +0000 (16:44 -0400)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 24 Aug 2008 20:44:07 +0000 (16:44 -0400)
Must make sure that hotdrop is properly initialized. GCC
unfortunately did not warn.

extensions/compat_xtables.c

index c86ce0e474b9538695cd75de6d9c0ae874bbf198..8e05b87bd8234d1b4805c759c80290083b4e4926 100644 (file)
@@ -36,7 +36,7 @@ static int xtnu_match_run(const struct sk_buff *skb,
     unsigned int protoff, int *hotdrop)
 {
        struct xtnu_match *nm = xtcompat_numatch(cm);
-       bool lo_drop, lo_ret;
+       bool lo_drop = false, lo_ret;
 
        if (nm == NULL || nm->match == NULL)
                return false;