mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 13:23:44 +00:00
pimd: fix incorrect bool returns
-1 is true when casted to bool. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
53d7080980
commit
e748f180f5
@ -494,7 +494,7 @@ bool pim_igmp_verify_header(struct ip *ip_hdr, size_t len, int igmp_msg_len,
|
||||
zlog_warn(
|
||||
"Recv IGMP packet with invalid ttl=%u, discarding the packet",
|
||||
ip_hdr->ip_ttl);
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -505,7 +505,7 @@ bool pim_igmp_verify_header(struct ip *ip_hdr, size_t len, int igmp_msg_len,
|
||||
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