From d2035aefb220b7b6fd7d5529aabccb59b890a743 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 7 Dec 2016 14:28:16 +0100 Subject: [PATCH] http_access_verify_channel() might free hc->hc_access - coverity --- src/webui/webui.c | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.47.3