summaryrefslogtreecommitdiff
path: root/testing/nTox.c
diff options
context:
space:
mode:
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);