]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http_access_verify_channel() might free hc->hc_access - coverity
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Dec 2016 13:28:16 +0000 (14:28 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 Dec 2016 13:28:16 +0000 (14:28 +0100)
src/webui/webui.c

index 8c22ca14478b455150b708d630ce6f339105ac6a..ef25b39119a63dcd506a8b791854724d5c487e33 100644 (file)
@@ -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));