mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Apply a patch related to MSVC, reported by Gisle Vanem: http://seclists.org/nmap-dev/2014/q1/161
This commit is contained in:
parent
298c42d3b4
commit
b53187bad7
1 changed files with 1 additions and 1 deletions
|
|
@ -544,11 +544,11 @@ static int ncat_hexdump(int logfd, const char *data, int len)
|
|||
int getaddrfamily(const char *addr)
|
||||
{
|
||||
int ret;
|
||||
struct addrinfo hint, *info =0;
|
||||
|
||||
if (strchr(addr,':'))
|
||||
return 2;
|
||||
|
||||
struct addrinfo hint, *info =0;
|
||||
zmem(&hint,sizeof(hint));
|
||||
hint.ai_family = AF_UNSPEC;
|
||||
hint.ai_flags = AI_NUMERICHOST;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue