diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index ecc1fedc1b..6348511a48 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -200,6 +200,8 @@ error: bool net_http_connection_iterate(struct http_connection_t *conn) { + if (!conn) + return false; if (*conn->scan != '/' && *conn->scan != ':' && *conn->scan != '\0') { conn->scan++;