Change getaddrinfo_rarch call to be the same as the rest

This commit is contained in:
twinaphex 2015-01-24 00:07:39 +01:00
parent 9df772f4f7
commit 79a4de0677

View File

@ -94,8 +94,7 @@ static int net_http_new_socket(const char * domain, int port)
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = 0;
getaddrinfo_rarch(domain, portstr, &hints, &addr);
if (!addr)
if (getaddrinfo_rarch(domain, portstr, &hints, &addr) < 0)
return -1;
(void)i;