From 0750fe50bb6b1a2d652328295dac818de265881c Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Thu, 29 Oct 2015 22:04:48 -0200 Subject: [PATCH] better network initialization in net_http_new_socket --- libretro-common/net/net_http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index a3dc3ce3d1..e34185954d 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -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);