summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_packet.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-07-02 17:37:23 +0200
committerF. Aragon <paco@voltanet.io>2018-07-02 17:37:23 +0200
commitc4822682d15f6caa62406b416ac47be6d9434756 (patch)
treeb60a1ccf6c0618a110ddfb8527fd4e1dc431ed65 /nhrpd/nhrp_packet.c
parentMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff)
downloadfrr-c4822682d15f6caa62406b416ac47be6d9434756.tar.xz
frr-c4822682d15f6caa62406b416ac47be6d9434756.zip
nhrpd: odd operator usage fix (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to '')
-rw-r--r--nhrpd/nhrp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/nhrp_packet.c b/nhrpd/nhrp_packet.c
index c27ebe1d9..e62ee1ef7 100644
--- a/nhrpd/nhrp_packet.c
+++ b/nhrpd/nhrp_packet.c
@@ -164,7 +164,7 @@ struct nhrp_cie_header *nhrp_cie_pull(struct zbuf *zb,
if (!cie)
return NULL;
- if (cie->nbma_address_len + cie->nbma_subaddress_len) {
+ if (cie->nbma_address_len + cie->nbma_subaddress_len > 0) {
sockunion_set(nbma, afi2family(htons(hdr->afnum)),
zbuf_pulln(zb,
cie->nbma_address_len