diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2024-10-08 15:31:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 15:31:18 +0200 |
commit | e3c7a0456af584951c9ad45b67c60bfbb138590c (patch) | |
tree | 9aea838e167687bce8f68a6a984853fad74cfcd8 | |
parent | Merge pull request #15903 from y-bharath14/srib-topotests-v1 (diff) | |
parent | vrrpd: iterate over all ancillary messages (diff) | |
download | frr-e3c7a0456af584951c9ad45b67c60bfbb138590c.tar.xz frr-e3c7a0456af584951c9ad45b67c60bfbb138590c.zip |
Merge pull request #17022 from opensourcerouting/vrrp-cmsg-next
vrrpd: iterate over all ancillary messages
-rw-r--r-- | vrrpd/vrrp_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vrrpd/vrrp_packet.c b/vrrpd/vrrp_packet.c index 36494c7df..a2fb2bc32 100644 --- a/vrrpd/vrrp_packet.c +++ b/vrrpd/vrrp_packet.c @@ -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; |