1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Use checked_fd_set in 2 more places: bounce scan and pcap_select

This commit is contained in:
dmiller
2021-01-07 18:31:09 +00:00
parent 28bfe0dfd2
commit 67cccec38d
2 changed files with 2 additions and 2 deletions

View File

@@ -1758,7 +1758,7 @@ int recvtime(int sd, char *buf, int len, int seconds, int *timedout) {
timeout.tv_sec = seconds;
timeout.tv_usec = 0;
FD_ZERO(&readfd);
FD_SET(sd, &readfd);
checked_fd_set(sd, &readfd);
if (timedout)
*timedout = 0;
res = select(sd + 1, &readfd, NULL, NULL, &timeout);