Jelajahi Sumber

netfilter: ipt_ah: return boolean instead of integer

Return statements in functions returning bool should use
true/false instead of 1/0.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Gustavo A. R. Silva 7 tahun lalu
induk
melakukan
2db3fec507
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      net/ipv4/netfilter/ipt_ah.c

+ 1 - 1
net/ipv4/netfilter/ipt_ah.c

@@ -47,7 +47,7 @@ static bool ah_mt(const struct sk_buff *skb, struct xt_action_param *par)
 		 */
 		 */
 		pr_debug("Dropping evil AH tinygram.\n");
 		pr_debug("Dropping evil AH tinygram.\n");
 		par->hotdrop = true;
 		par->hotdrop = true;
-		return 0;
+		return false;
 	}
 	}
 
 
 	return spi_match(ahinfo->spis[0], ahinfo->spis[1],
 	return spi_match(ahinfo->spis[0], ahinfo->spis[1],