From 18b5c10563ac6756d219fdaf76002c1330094ac1 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 31 Jan 2021 13:58:26 +0000 Subject: [PATCH] Fix Freebsd TFO build Broken-by: 3eb0bcd7a1 --- src/src/malware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/malware.c b/src/src/malware.c index 7c134d759..831e9af1f 100644 --- a/src/src/malware.c +++ b/src/src/malware.c @@ -280,7 +280,7 @@ if (fd >= 0) { struct timeval tv = {.tv_sec = 5}; fd_set fds; - FD_ZERO(fds); FD_SET(fd, &fds); (void) select(fd+1, NULL, &fds, NULL, &tv); + FD_ZERO(&fds); FD_SET(fd, &fds); (void) select(fd+1, NULL, &fds, NULL, &tv); } #endif return fd; -- 2.30.2