From: Jaroslav Kysela Date: Wed, 7 Dec 2016 13:28:16 +0000 (+0100) Subject: http_access_verify_channel() might free hc->hc_access - coverity X-Git-Tag: v4.2.1~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2035aefb220b7b6fd7d5529aabccb59b890a743;p=thirdparty%2Ftvheadend.git http_access_verify_channel() might free hc->hc_access - coverity --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 8c22ca144..ef25b3911 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -865,6 +865,9 @@ http_dvr_list_playlist(http_connection_t *hc, int pltype) http_access_verify_channel(hc, ACCESS_RECORDER, de->de_channel)) continue; + if (hc->hc_access == NULL) + continue; + durration = dvr_entry_get_stop_time(de) - dvr_entry_get_start_time(de, 0); bandwidth = ((8*fsize) / (durration*1024.0)); strftime(buf, sizeof(buf), "%FT%T%z", localtime_r(&(de->de_start), &tm));