提交 2db3fec5 编写于 作者: G Gustavo A. R. Silva 提交者: Pablo Neira Ayuso

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: NGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 433029ec
......@@ -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");
par->hotdrop = true;
return 0;
return false;
}
return spi_match(ahinfo->spis[0], ahinfo->spis[1],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册