mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-03 06:17:42 +00:00
pimd: mark rest-of-packet ignored in C-RP parse
The `buf` pointer is being updated as the parse goes along. It's not used after the last update, but I'd rather keep this in for consistency. Just make a note of it being unused. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
3ce0fe0e08
commit
6476f9deac
@ -502,6 +502,9 @@ int pim_crp_process(struct interface *ifp, pim_sgaddr *src_dst, uint8_t *buf,
|
||||
buf += sizeof(*crp_hdr);
|
||||
remain -= sizeof(*crp_hdr);
|
||||
|
||||
/* ignore trailing data */
|
||||
(void)buf;
|
||||
|
||||
size_t ngroups = crp_hdr->prefix_cnt;
|
||||
|
||||
if (remain < ngroups * sizeof(struct pim_encoded_group_ipv4)) {
|
||||
|
Loading…
Reference in New Issue
Block a user