diff options
author | F. Aragon <paco@voltanet.io> | 2018-07-02 17:37:23 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-07-02 17:37:23 +0200 |
commit | c4822682d15f6caa62406b416ac47be6d9434756 (patch) | |
tree | b60a1ccf6c0618a110ddfb8527fd4e1dc431ed65 | |
parent | Merge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff) | |
download | frr-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.c | 2 |
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 |