Apply a patch related to MSVC, reported by Gisle Vanem: http://seclists.org/nmap-dev/2014/q1/161

This commit is contained in:
d33tah 2014-02-12 09:49:39 +00:00
parent 298c42d3b4
commit b53187bad7

View file

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