Skip to content

Commit

Permalink
Merge pull request #17036 from FRRouting/mergify/bp/stable/9.0/pr-17022
Browse files Browse the repository at this point in the history
vrrpd: iterate over all ancillary messages (backport #17022)
  • Loading branch information
ton31337 authored Oct 10, 2024
2 parents a425b3c + 5972018 commit 025520f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vrrpd/vrrp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ ssize_t vrrp_pkt_parse_datagram(int family, int version, bool ipv4_ph,
} else if (family == AF_INET6) {
struct cmsghdr *c;

for (c = CMSG_FIRSTHDR(m); c != NULL; CMSG_NXTHDR(m, c)) {
for (c = CMSG_FIRSTHDR(m); c != NULL; c = CMSG_NXTHDR(m, c)) {
if (c->cmsg_level == IPPROTO_IPV6
&& c->cmsg_type == IPV6_HOPLIMIT)
break;
Expand Down

0 comments on commit 025520f

Please sign in to comment.