mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 01:57:26 +00:00
ospf6d: unitialised buffer zone used by socket
a buffer zone is initialised, before being used by server socket. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
77a4dd9320
commit
c8b9f5fb12
@ -163,6 +163,7 @@ int ospf6_sendmsg(struct in6_addr *src, struct in6_addr *dst,
|
|||||||
assert(dst);
|
assert(dst);
|
||||||
assert(*ifindex);
|
assert(*ifindex);
|
||||||
|
|
||||||
|
memset(&cmsgbuf, 0, sizeof(cmsgbuf));
|
||||||
scmsgp = (struct cmsghdr *)&cmsgbuf;
|
scmsgp = (struct cmsghdr *)&cmsgbuf;
|
||||||
pktinfo = (struct in6_pktinfo *)(CMSG_DATA(scmsgp));
|
pktinfo = (struct in6_pktinfo *)(CMSG_DATA(scmsgp));
|
||||||
memset(&dst_sin6, 0, sizeof(struct sockaddr_in6));
|
memset(&dst_sin6, 0, sizeof(struct sockaddr_in6));
|
||||||
|
Loading…
Reference in New Issue
Block a user