Merge pull request #2313 from leiradel/master

better network initialization in net_http_new_socket
This commit is contained in:
Andrés 2015-10-29 19:05:45 -05:00
commit efad7848ec

View File

@ -76,7 +76,8 @@ static int net_http_new_socket(const char *domain, int port)
char portstr[16] = {0};
/* Initialize the network. */
network_init();
if (!network_init())
return -1;
snprintf(portstr, sizeof(portstr), "%i", port);