mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
vrrpd: fix bad fmt specifiers in dgram validator
They used a %u where they should have used a PRIu16, and a %lu where they wanted a %zu. Shame! Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
6309f71c9b
commit
7e9fee6a66
@ -211,7 +211,8 @@ ssize_t vrrp_pkt_parse_datagram(int family, int version, struct msghdr *m,
|
||||
/* IP total length check */
|
||||
VRRP_PKT_VCHECK(
|
||||
ntohs(ip->ip_len) == read,
|
||||
"IPv4 packet length field does not match # received bytes; %u != %lu",
|
||||
"IPv4 packet length field does not match # received bytes; %" PRIu16
|
||||
"!= %zu",
|
||||
ntohs(ip->ip_len), read);
|
||||
|
||||
/* TTL check */
|
||||
|
Loading…
Reference in New Issue
Block a user