diff options
author | plutooo <tfy12vbr@student.lu.se> | 2013-08-01 11:52:13 -0700 |
---|---|---|
committer | plutooo <tfy12vbr@student.lu.se> | 2013-08-01 11:54:06 -0700 |
commit | 3d916b35f2dadd17a7c9f5acd08ef396b8c8263c (patch) | |
tree | cf0fcbc0a51c0c02e4949e3cd4e8822b41bf5af8 /testing/nTox.c | |
parent | d534a052648cc0085d6d6e40c22701e2feb5b416 (diff) |
core: getaddrinfo() lookup error handling
Diffstat (limited to 'testing/nTox.c')
-rw-r--r-- | testing/nTox.c | 2 |
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); |