Commit 6768bc56 authored by Maria Matejka's avatar Maria Matejka Committed by Maria Matejka
Browse files

Simple change in UDP message sending to shutup Valgrind

parent 42132be5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);