summaryrefslogtreecommitdiffstats
path: root/babeld/neighbour.c
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-18 19:07:24 +0200
committerpaco <paco@voltanet.io>2018-06-18 19:07:24 +0200
commitd11c6941dc5e3663891e61a4e24f94b4d0e6bd68 (patch)
treeebbd6ab6492b790eb742d0bf1ff9d8b98b862d92 /babeld/neighbour.c
parentMerge pull request #2457 from pacovn/Coverity_1465491_Untrusted_value_as_argu... (diff)
downloadfrr-d11c6941dc5e3663891e61a4e24f94b4d0e6bd68.tar.xz
frr-d11c6941dc5e3663891e61a4e24f94b4d0e6bd68.zip
babeld, eigrpd, ospfd: unsigned negative check
After Cppcheck 1.72 feedback Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'babeld/neighbour.c')
-rw-r--r--babeld/neighbour.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/neighbour.c b/babeld/neighbour.c
index 48a32c4a9..3db121fd2 100644
--- a/babeld/neighbour.c
+++ b/babeld/neighbour.c
@@ -120,7 +120,7 @@ update_neighbour(struct neighbour *neigh, int hello, int hello_interval)
int rc = 0;
if(hello < 0) {
- if(neigh->hello_interval <= 0)
+ if(neigh->hello_interval == 0)
return rc;
missed_hellos =
((int)timeval_minus_msec(&babel_now, &neigh->hello_time) -