mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Don't retry in Sendto() if errno is EMSGSIZE: sleeping for a few seconds
won't shorten the packet.
This commit is contained in:
parent
886015d72c
commit
35dd4e1377
1 changed files with 1 additions and 1 deletions
|
|
@ -3095,7 +3095,7 @@ int Sendto(const char *functionname, int sd,
|
|||
#if WIN32
|
||||
return -1;
|
||||
#else
|
||||
if (retries > 2 || err == EPERM || err == EACCES
|
||||
if (retries > 2 || err == EPERM || err == EACCES || err == EMSGSIZE
|
||||
|| err == EADDRNOTAVAIL || err == EINVAL)
|
||||
return -1;
|
||||
sleeptime = 15 * (1 << (2 * retries));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue