From 3d916b35f2dadd17a7c9f5acd08ef396b8c8263c Mon Sep 17 00:00:00 2001 From: plutooo Date: Thu, 1 Aug 2013 11:52:13 -0700 Subject: core: getaddrinfo() lookup error handling --- testing/nTox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/nTox.c') diff --git a/testing/nTox.c b/testing/nTox.c index 17f4b0e7..f87a2a25 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -423,7 +423,7 @@ int main(int argc, char *argv[]) IP_Port bootstrap_ip_port; bootstrap_ip_port.port = htons(atoi(argv[2])); int resolved_address = resolve_addr(argv[1]); - if (resolved_address != -1) + if (resolved_address != 0) bootstrap_ip_port.ip.i = resolved_address; else exit(1); -- cgit v1.2.3