]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Simple change in UDP message sending to shutup Valgrind
authorMaria Matejka <mq@jmq.cz>
Sun, 26 Apr 2020 21:22:18 +0000 (23:22 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 30 Apr 2020 15:38:30 +0000 (17:38 +0200)
sysdep/unix/io.c

index b5696ac44d362af6ee89f3f060300fe094eb4f04..ae31ce6002c504fc49c0a87894de74f911c5cc3f 100644 (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);