mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Use checked_fd_set in 2 more places: bounce scan and pcap_select
This commit is contained in:
parent
28bfe0dfd2
commit
67cccec38d
2 changed files with 2 additions and 2 deletions
|
|
@ -937,7 +937,7 @@ int pcap_select(pcap_t *p, struct timeval *timeout) {
|
|||
return -1;
|
||||
|
||||
FD_ZERO(&rfds);
|
||||
FD_SET(fd, &rfds);
|
||||
checked_fd_set(fd, &rfds);
|
||||
|
||||
do {
|
||||
errno = 0;
|
||||
|
|
|
|||
2
tcpip.cc
2
tcpip.cc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue