]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
muxer: fix NULL pointer dereference (m_add_marker), fixes #4007
authorJaroslav Kysela <perex@perex.cz>
Mon, 3 Oct 2016 17:37:21 +0000 (19:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Oct 2016 17:37:21 +0000 (19:37 +0200)
src/muxer.h

index 28a62373062bb5dcd666f4bddfc5ffcda18ead75..d0bedff9fd772e07e582933513fbb672856b3348 100644 (file)
@@ -122,7 +122,7 @@ static inline int muxer_reconfigure (muxer_t *m, const struct streaming_start *s
   { if(m && ss) return m->m_reconfigure(m, ss); return -1; }
 
 static inline int muxer_add_marker (muxer_t *m)
-  { if (m) return m->m_add_marker(m); return -1; }
+  { if (m && m->m_add_marker) return m->m_add_marker(m); return -1; }
 
 static inline int muxer_close (muxer_t *m)
   { if (m) return m->m_close(m); return -1; }