mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-10 01:11:16 +00:00
lib: un-static trash buffer for pipe poker
data races Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
efd934cab0
commit
0693f6fc75
@ -676,7 +676,7 @@ fd_poll (struct thread_master *m, struct pollfd *pfds, nfds_t pfdsize,
|
|||||||
|
|
||||||
num = poll (pfds, count + 1, timeout);
|
num = poll (pfds, count + 1, timeout);
|
||||||
|
|
||||||
static unsigned char trash[64];
|
unsigned char trash[64];
|
||||||
if (num > 0 && pfds[count].revents != 0 && num--)
|
if (num > 0 && pfds[count].revents != 0 && num--)
|
||||||
while (read (m->io_pipe[0], &trash, sizeof (trash)) > 0);
|
while (read (m->io_pipe[0], &trash, sizeof (trash)) > 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user