From: Jaroslav Kysela Date: Sun, 13 Dec 2015 20:02:23 +0000 (+0100) Subject: DVR: fix NULL dereference, fixes #3418 X-Git-Tag: v4.2.1~1308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c73241abbaf83e313cd038a89b1c78b8221541f;p=thirdparty%2Ftvheadend.git DVR: fix NULL dereference, fixes #3418 --- diff --git a/src/dvr/dvr_inotify.c b/src/dvr/dvr_inotify.c index c9ad3682f..84a6b2ebc 100644 --- a/src/dvr/dvr_inotify.c +++ b/src/dvr/dvr_inotify.c @@ -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)