mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-19 11:06:35 +02:00
core: getaddrinfo() lookup error handling
This commit is contained in:
4
prompt.c
4
prompt.c
@ -83,8 +83,8 @@ static void execute(ToxWindow* self, char* cmd) {
|
|||||||
|
|
||||||
dht.port = htons(atoi(port));
|
dht.port = htons(atoi(port));
|
||||||
|
|
||||||
int resolved_address = resolve_addr(ip);
|
uint32_t resolved_address = resolve_addr(ip);
|
||||||
if (resolved_address == -1) {
|
if (resolved_address == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user