From: Jaroslav Kysela Date: Wed, 31 Jan 2018 17:23:07 +0000 (+0100) Subject: httpc: set hc_scheme, hc_host to NULL (error path) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98cbd6022ee3c4664af9373cdd478b4b1fe56a2a;p=thirdparty%2Ftvheadend.git httpc: set hc_scheme, hc_host to NULL (error path) --- diff --git a/src/httpc.c b/src/httpc.c index ebf10e9bd..239a3e264 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -1473,6 +1473,8 @@ http_client_reconnect free(hc->hc_scheme); free(hc->hc_host); + hc->hc_scheme = NULL; + hc->hc_host = NULL; if (scheme == NULL || host == NULL) goto errnval;