initialize the network in net_http_new_socket

This commit is contained in:
Andre Leiradella 2015-10-28 21:25:27 -02:00
parent fda10142b4
commit 6f137587d1

View File

@ -74,6 +74,9 @@ static int net_http_new_socket(const char *domain, int port)
#endif
struct addrinfo hints, *addr = NULL;
char portstr[16] = {0};
/* Initialize the network. */
network_init();
snprintf(portstr, sizeof(portstr), "%i", port);