summaryrefslogtreecommitdiff
path: root/pimd/pim_igmp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-07-28 10:04:44 -0400
committerGitHub <noreply@github.com>2021-07-28 10:04:44 -0400
commit42589d2b72358e0195f299b51fd78a8be3dddd14 (patch)
treef22bdd70949bf04cd6a9e2960c41b3757563b596 /pimd/pim_igmp.c
parenta7d21b682e539db1423051250917e286d5f6ce2f (diff)
parente748f180f5823a8ac29564ee394ece961523e025 (diff)
Merge pull request #9194 from idryzhov/pim-bool-false
pimd: fix incorrect bool returns
Diffstat (limited to 'pimd/pim_igmp.c')
-rw-r--r--pimd/pim_igmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index 426112d4d6..71b2d9187a 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -512,7 +512,7 @@ bool pim_igmp_verify_header(struct ip *ip_hdr, size_t len, size_t *hlen)
zlog_warn(
"Recv IGMP packet with invalid ttl=%u, discarding the packet",
ip_hdr->ip_ttl);
- return -1;
+ return false;
}
}
@@ -523,7 +523,7 @@ bool pim_igmp_verify_header(struct ip *ip_hdr, size_t len, size_t *hlen)
if (ip_hdr->ip_tos != IPTOS_PREC_INTERNETCONTROL) {
zlog_warn("Received IGMP Packet with invalid TOS %u",
ip_hdr->ip_tos);
- return -1;
+ return false;
}
}