summaryrefslogtreecommitdiff
path: root/proto/bfd/packets.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-23 13:12:25 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-23 13:12:25 +0200
commit734e9fb8a933898cd3396786c06728bce6a754e5 (patch)
tree610ffaa2286fc604be4b2f1c30a983f0076b1da8 /proto/bfd/packets.c
parentbb7aa06a48f52813a019861a0e06ce9fe4d20c4b (diff)
Minor cleanups and fixes
Diffstat (limited to 'proto/bfd/packets.c')
-rw-r--r--proto/bfd/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bfd/packets.c b/proto/bfd/packets.c
index 06cde4d3..b76efda6 100644
--- a/proto/bfd/packets.c
+++ b/proto/bfd/packets.c
@@ -248,7 +248,7 @@ bfd_check_authentication(struct bfd_proto *p, struct bfd_session *s, struct bfd_
/* BFD CSNs are in 32-bit circular number space */
u32 csn = ntohl(auth->csn);
if (s->rx_csn_known &&
- (((csn - s->rx_csn) > (3 * s->detect_mult)) ||
+ (((csn - s->rx_csn) > (3 * (uint) s->detect_mult)) ||
(meticulous && (csn == s->rx_csn))))
{
/* We want to report both new and old CSN */