1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 16:53:01 +01:00

Merge pull request #244 from plutooo/master

core: getaddrinfo() lookup error handling
This commit is contained in:
irungentoo 2013-08-01 12:21:45 -07:00
commit ff212413c3

View File

@ -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;
}