Test this one for failure... shouldn't getaddrinfo be testing this already?

This commit is contained in:
Alcaro 2015-05-20 16:06:48 +02:00
parent 94046d2d74
commit 81e583c497

View File

@ -81,6 +81,8 @@ static int net_http_new_socket(const char * domain, int port)
if (getaddrinfo_rarch(domain, portstr, &hints, &addr) < 0)
return -1;
if (!addr)
return -1;
fd = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);