1
0
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:
henri
2013-05-18 13:24:03 +00:00
parent 3534dfa3b8
commit 192cd3657d

View File

@@ -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