mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Move declaration of var fdi to the correct block to avoid warning
This commit is contained in:
parent
60714a71d2
commit
9d083df888
1 changed files with 2 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ static int ncat_listen_stream(int proto)
|
|||
/* We pass these temporary descriptor sets to fselect, since fselect
|
||||
modifies the sets it receives. */
|
||||
fd_set readfds = master_readfds, writefds = master_writefds;
|
||||
struct fdinfo *fdi = NULL;
|
||||
|
||||
|
||||
if (o.debug > 1)
|
||||
logdebug("selecting, fdmax %d\n", client_fdlist.fdmax);
|
||||
|
|
@ -362,6 +362,7 @@ static int ncat_listen_stream(int proto)
|
|||
#ifdef HAVE_OPENSSL
|
||||
/* Is this an ssl socket pending a handshake? If so handle it. */
|
||||
if (o.ssl && FD_ISSET(i, &sslpending_fds)) {
|
||||
struct fdinfo *fdi = NULL;
|
||||
FD_CLR(i, &master_readfds);
|
||||
FD_CLR(i, &master_writefds);
|
||||
fdi = get_fdinfo(&client_fdlist, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue