mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix Idle timer for listen mode, broken since -q option was added
This commit is contained in:
parent
66fea77905
commit
dd5eba48be
1 changed files with 3 additions and 1 deletions
|
|
@ -322,8 +322,10 @@ int ncat_listen()
|
|||
}
|
||||
|
||||
/* The idle timer should only be running when there are active connections */
|
||||
if (o.idletimeout > 0 && get_conn_count() && o.idletimeout * 1000 < usec_wait)
|
||||
if (o.idletimeout > 0 && get_conn_count()) {
|
||||
if (usec_wait < 0 || o.idletimeout * 1000 < usec_wait)
|
||||
usec_wait = o.idletimeout * 1000;
|
||||
}
|
||||
|
||||
if (usec_wait >= 0) {
|
||||
tvp = &tv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue