mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 18:56:53 +00:00
Merge pull request #9194 from idryzhov/pim-bool-false
pimd: fix incorrect bool returns
This commit is contained in:
commit
42589d2b72
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user