0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Simple change in UDP message sending to shutup Valgrind

This commit is contained in:
Maria Matejka 2020-04-26 23:22:18 +02:00 committed by Maria Matejka
parent 42132be5a8
commit 6768bc568b

View File

@ -1557,8 +1557,8 @@ static inline int
sk_sendmsg(sock *s)
{
struct iovec iov = {s->tbuf, s->tpos - s->tbuf};
byte cmsg_buf[CMSG_TX_SPACE];
sockaddr dst;
static _Thread_local byte cmsg_buf[CMSG_TX_SPACE] = {};
static _Thread_local sockaddr dst = {};
int flags = 0;
sockaddr_fill(&dst, s->af, s->daddr, s->iface, s->dport);