Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http_access_verify_channel() might free hc->hc_access - coverity
  • Loading branch information
perexg committed Dec 7, 2016
1 parent 64d4c88 commit d2035ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webui/webui.c
Expand Up @@ -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));
Expand Down

0 comments on commit d2035ae

Please sign in to comment.