mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +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:
@@ -163,7 +163,7 @@ static int nsock_make_socket(mspool *ms, msiod *iod, int family, int type, int p
|
|||||||
if (ms->device)
|
if (ms->device)
|
||||||
mksock_bind_device(ms, iod);
|
mksock_bind_device(ms, iod);
|
||||||
|
|
||||||
if (ms->broadcast)
|
if (ms->broadcast && type != SOCK_STREAM)
|
||||||
mksock_set_broadcast(ms, iod);
|
mksock_set_broadcast(ms, iod);
|
||||||
|
|
||||||
/* mksock_* functions can raise warnings/errors
|
/* mksock_* functions can raise warnings/errors
|
||||||
|
|||||||
Reference in New Issue
Block a user