Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix NULL dereference, fixes #3418
  • Loading branch information
perexg committed Dec 13, 2015
1 parent d301e31 commit 4c73241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_inotify.c
Expand Up @@ -154,7 +154,7 @@ void dvr_inotify_add ( dvr_entry_t *de )
htsmsg_field_t *f;
htsmsg_t *m;

if (_inot_fd < 0)
if (_inot_fd < 0 || de->de_files == NULL)
return;

HTSMSG_FOREACH(f, de->de_files)
Expand Down

0 comments on commit 4c73241

Please sign in to comment.