From: Jaroslav Kysela Date: Wed, 7 Dec 2016 13:20:15 +0000 (+0100) Subject: fix error path in http_access_verify_channel() X-Git-Tag: v4.2.1~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64d4c88b7c44dd0b20de1f5395f42f3fb4088630;p=thirdparty%2Ftvheadend.git fix error path in http_access_verify_channel() --- diff --git a/src/http.c b/src/http.c index b84957ead..aa7fc5819 100644 --- a/src/http.c +++ b/src/http.c @@ -892,8 +892,10 @@ http_access_verify_channel(http_connection_t *hc, int mask, if (res) { access_destroy(hc->hc_access); - if (http_verify_prepare(hc, &v)) + if (http_verify_prepare(hc, &v)) { + hc->hc_access = NULL; return -1; + } hc->hc_access = access_get((struct sockaddr *)hc->hc_peer, hc->hc_username, http_verify_callback, &v); http_verify_free(&v);