Skip to content

Commit

Permalink
Merge pull request #14611 from FRRouting/mergify/bp/dev/9.1/pr-14607
Browse files Browse the repository at this point in the history
pim6d: valgrind issue fixes (backport #14607)
  • Loading branch information
donaldsharp authored Oct 17, 2023
2 parents 5c2e63d + 564697e commit dce179f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pimd/pim_register.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,8 @@ void pim_null_register_send(struct pim_upstream *up)
memset(buffer, 0, (sizeof(ip6_hdr) + sizeof(pim_msg_header)));
memcpy(buffer, &ip6_hdr, sizeof(ip6_hdr));

pim_msg_header.ver = 0;
pim_msg_header.type = 0;
pim_msg_header.reserved = 0;

pim_msg_header.checksum = 0;
memset(&pim_msg_header, 0, sizeof(pim_msg_header));
memset(&ph, 0, sizeof(ph));

ph.src = up->sg.src;
ph.dst = up->sg.grp;
Expand Down

0 comments on commit dce179f

Please sign in to comment.