mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
pass flags from Send() to send()
This commit is contained in:
parent
4f3dbf5d56
commit
c6cd59cc16
1 changed files with 1 additions and 1 deletions
2
utils.cc
2
utils.cc
|
|
@ -351,7 +351,7 @@ int Send(int sd, const void *msg, size_t len, int flags) {
|
|||
unsigned int sentlen = 0;
|
||||
|
||||
do {
|
||||
res = send(sd,(char *) msg + sentlen, len - sentlen, 0);
|
||||
res = send(sd,(char *) msg + sentlen, len - sentlen, flags);
|
||||
if (res > 0)
|
||||
sentlen += res;
|
||||
} while(sentlen < len && (res != -1 || socket_errno() == EINTR));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue