mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Pass error along instead of printing (link error)
This commit is contained in:
parent
8390fa0be0
commit
8e65c92264
1 changed files with 1 additions and 2 deletions
|
|
@ -184,8 +184,7 @@ char *socket_strerror(int errnum) {
|
|||
FORMAT_MESSAGE_MAX_WIDTH_MASK,
|
||||
0, errnum, 0, buffer, sizeof(buffer), NULL))
|
||||
{
|
||||
error("FormatMessage error: %08x", GetLastError());
|
||||
buffer[0] = '\0';
|
||||
Snprintf(buffer, 255, "socket error %d; FormatMessage error: %08x", errnum, GetLastError());
|
||||
};
|
||||
|
||||
return buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue