From: Jan Engelhardt Date: Sun, 24 Aug 2008 20:44:07 +0000 (-0400) Subject: Clear hotdrop before use X-Git-Tag: v1.5.7~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd9c6ffb039948641372f1841dee94aef2fa8991;p=thirdparty%2Fxtables-addons.git Clear hotdrop before use Must make sure that hotdrop is properly initialized. GCC unfortunately did not warn. --- diff --git a/extensions/compat_xtables.c b/extensions/compat_xtables.c index c86ce0e..8e05b87 100644 --- a/extensions/compat_xtables.c +++ b/extensions/compat_xtables.c @@ -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;