Skip to content

Commit

Permalink
Apply a patch related to MSVC, reported by Gisle Vanem: http://seclis…
Browse files Browse the repository at this point in the history
  • Loading branch information
d33tah committed Feb 12, 2014
1 parent 298c42d commit b53187b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncat/ncat_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b53187b

Please sign in to comment.