aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/ipt_ah.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2018-02-13 08:25:57 -0600
committerPablo Neira Ayuso <pablo@netfilter.org>2018-03-05 23:15:43 +0100
commit2db3fec507bd822ed81c031221b97701238949dc (patch)
treeb99e88be3a36e859af480d86893c092e15ccefa3 /net/ipv4/netfilter/ipt_ah.c
parent433029ecc62788296cacca50ceb24db90c17a4a2 (diff)
downloadlinux-2db3fec507bd822ed81c031221b97701238949dc.tar.gz
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>
Diffstat (limited to 'net/ipv4/netfilter/ipt_ah.c')
-rw-r--r--net/ipv4/netfilter/ipt_ah.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_ah.c b/net/ipv4/netfilter/ipt_ah.c
index a787d07f6cb75..7c6c20eaf4dbf 100644
--- a/net/ipv4/netfilter/ipt_ah.c
+++ b/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");
par->hotdrop = true;
- return 0;
+ return false;
}
return spi_match(ahinfo->spis[0], ahinfo->spis[1],