diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-01 12:21:45 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-01 12:21:45 -0700 |
commit | f6c510b3ccd3b5850b714831c61d96baa58da4b5 (patch) | |
tree | 216b29a02fe7a7bf1e63455fcb84552157e933d0 /testing/toxic | |
parent | 75daa1aec9c908205ebc8e085b4c5cdb048b6017 (diff) | |
parent | 3d916b35f2dadd17a7c9f5acd08ef396b8c8263c (diff) |
Merge pull request #244 from plutooo/master
core: getaddrinfo() lookup error handling
Diffstat (limited to 'testing/toxic')
-rw-r--r-- | testing/toxic/prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index 3c4a27dd..a3cf2d94 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -83,8 +83,8 @@ static void execute(ToxWindow* self, char* cmd) { | |||
83 | 83 | ||
84 | dht.port = htons(atoi(port)); | 84 | dht.port = htons(atoi(port)); |
85 | 85 | ||
86 | int resolved_address = resolve_addr(ip); | 86 | uint32_t resolved_address = resolve_addr(ip); |
87 | if (resolved_address == -1) { | 87 | if (resolved_address == 0) { |
88 | return; | 88 | return; |
89 | } | 89 | } |
90 | 90 | ||