mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Don't set SO_BROADCAST on SOCK_STREAM sockets.
This doesn't make sense and raise verbose errors, at least on Windows. See: http://seclists.org/nmap-dev/2013/q2/313
This commit is contained in:
parent
3534dfa3b8
commit
192cd3657d
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ static int nsock_make_socket(mspool *ms, msiod *iod, int family, int type, int p
|
|||
if (ms->device)
|
||||
mksock_bind_device(ms, iod);
|
||||
|
||||
if (ms->broadcast)
|
||||
if (ms->broadcast && type != SOCK_STREAM)
|
||||
mksock_set_broadcast(ms, iod);
|
||||
|
||||
/* mksock_* functions can raise warnings/errors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue