diff options
author | paco <paco@voltanet.io> | 2018-06-18 19:07:24 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-18 19:07:24 +0200 |
commit | d11c6941dc5e3663891e61a4e24f94b4d0e6bd68 (patch) | |
tree | ebbd6ab6492b790eb742d0bf1ff9d8b98b862d92 /eigrpd | |
parent | Merge pull request #2457 from pacovn/Coverity_1465491_Untrusted_value_as_argu... (diff) | |
download | frr-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 'eigrpd')
-rw-r--r-- | eigrpd/eigrp_snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_snmp.c b/eigrpd/eigrp_snmp.c index 7dd95b7bc..1a6dee681 100644 --- a/eigrpd/eigrp_snmp.c +++ b/eigrpd/eigrp_snmp.c @@ -573,7 +573,7 @@ static struct eigrp_neighbor *eigrpNbrLookup(struct variable *v, oid *name, first = 0; len = *length - v->namelen; - if (len <= 0) + if (len == 0) first = 1; if (len > IN_ADDR_SIZE) |