Skip to content

Commit

Permalink
Merge pull request #14607 from mobash-rasool/fixes2
Browse files Browse the repository at this point in the history
pim6d: valgrind issue fixes
  • Loading branch information
ton31337 authored Oct 17, 2023
2 parents c8d5684 + 1064818 commit a681f52
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 a681f52

Please sign in to comment.