[NETFILTER]: x_tables: switch hotdrop to bool
[deliverable/linux.git] / net / ipv6 / netfilter / ip6t_mh.c
index c2a909893a64cbd790e9d650fbf8d7f4ae722ef2..c27647b6c2748fff87119f129ceb220de004122e 100644 (file)
@@ -48,7 +48,7 @@ match(const struct sk_buff *skb,
         const void *matchinfo,
         int offset,
         unsigned int protoff,
-        int *hotdrop)
+        bool *hotdrop)
 {
        struct ip6_mh _mh, *mh;
        const struct ip6t_mh *mhinfo = matchinfo;
@@ -62,14 +62,14 @@ match(const struct sk_buff *skb,
                /* We've been asked to examine this packet, and we
                   can't.  Hence, no choice but to drop. */
                duprintf("Dropping evil MH tinygram.\n");
-               *hotdrop = 1;
+               *hotdrop = true;
                return 0;
        }
 
        if (mh->ip6mh_proto != IPPROTO_NONE) {
                duprintf("Dropping invalid MH Payload Proto: %u\n",
                         mh->ip6mh_proto);
-               *hotdrop = 1;
+               *hotdrop = true;
                return 0;
        }
 
This page took 0.029615 seconds and 5 git commands to generate.