summaryrefslogtreecommitdiff
path: root/testing/nTox.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-01 12:21:45 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-01 12:21:45 -0700
commitf6c510b3ccd3b5850b714831c61d96baa58da4b5 (patch)
tree216b29a02fe7a7bf1e63455fcb84552157e933d0 /testing/nTox.c
parent75daa1aec9c908205ebc8e085b4c5cdb048b6017 (diff)
parent3d916b35f2dadd17a7c9f5acd08ef396b8c8263c (diff)
Merge pull request #244 from plutooo/master
core: getaddrinfo() lookup error handling
Diffstat (limited to 'testing/nTox.c')
-rw-r--r--testing/nTox.c2
1 files changed, 1 insertions, 1 deletions
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[])
423 IP_Port bootstrap_ip_port; 423 IP_Port bootstrap_ip_port;
424 bootstrap_ip_port.port = htons(atoi(argv[2])); 424 bootstrap_ip_port.port = htons(atoi(argv[2]));
425 int resolved_address = resolve_addr(argv[1]); 425 int resolved_address = resolve_addr(argv[1]);
426 if (resolved_address != -1) 426 if (resolved_address != 0)
427 bootstrap_ip_port.ip.i = resolved_address; 427 bootstrap_ip_port.ip.i = resolved_address;
428 else 428 else
429 exit(1); 429 exit(1);