diff --git a/prompt.c b/prompt.c index 3c4a27d..a3cf2d9 100644 --- a/prompt.c +++ b/prompt.c @@ -83,8 +83,8 @@ static void execute(ToxWindow* self, char* cmd) { dht.port = htons(atoi(port)); - int resolved_address = resolve_addr(ip); - if (resolved_address == -1) { + uint32_t resolved_address = resolve_addr(ip); + if (resolved_address == 0) { return; }