From 1a50d6f66116a53232cc0947a85ef2b907e88ef5 Mon Sep 17 00:00:00 2001 From: Colum Paget Date: Mon, 26 Jun 2017 11:45:11 +0100 Subject: [PATCH] fix crash on connection fail --- libUseful-2.8/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libUseful-2.8/http.c b/libUseful-2.8/http.c index 809d677..dad733a 100755 --- a/libUseful-2.8/http.c +++ b/libUseful-2.8/http.c @@ -1131,7 +1131,7 @@ if (g_Flags & HTTP_REQ_HTTPS) return(S); if (!S) S=HTTPSetupConnection(Info, FALSE); -S->Path=FormatStr(S->Path,"%s://%s:%d/%s",Info->Protocol,Info->Host,Info->Port,Info->Doc); +if (S) S->Path=FormatStr(S->Path,"%s://%s:%d/%s",Info->Protocol,Info->Host,Info->Port,Info->Doc); return(S); }