better network initialization in net_http_new_socket

This commit is contained in:
Andre Leiradella 2015-10-29 22:04:48 -02:00
parent 6f137587d1
commit 0750fe50bb

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);