summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2018-07-02 20:18:26 +0200
committerGitHub <noreply@github.com>2018-07-02 20:18:26 +0200
commit6945779cec858fee78455fd360d547322ac1389e (patch)
tree0904c1f693527fb2f9164cc5bf0391543851c0a6 /nhrpd
parentMerge pull request #2603 from pacovn/PVS-Studio_format_warnings (diff)
parentnhrpd: odd operator usage fix (PVS-Studio) (diff)
downloadfrr-6945779cec858fee78455fd360d547322ac1389e.tar.xz
frr-6945779cec858fee78455fd360d547322ac1389e.zip
Merge pull request #2604 from pacovn/PVS-Studio_odd_operator_usage
nhrpd: odd operator usage fix (PVS-Studio)
Diffstat (limited to 'nhrpd')
-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