[vlc-commits] access: dvb: fix null deref (cid #1362059)
Francois Cartegnie
git at videolan.org
Wed Nov 22 18:05:00 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 14:53:07 2017 +0100| [bde2f74f988d5325f6eb40d93c54ddfbf6435d20] | committer: Francois Cartegnie
access: dvb: fix null deref (cid #1362059)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bde2f74f988d5325f6eb40d93c54ddfbf6435d20
---
modules/access/dvb/scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 6248b2247b..2268210909 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -1385,7 +1385,7 @@ static void ParseNIT( vlc_object_t *p_obj, scan_t *p_scan,
msg_Dbg( p_obj, " * service_id=%" PRIu16 " type=%" PRIu8,
i_service_id, i_service_type );
- if( p_cfg->i_frequency == 0 )
+ if( !p_cfg || p_cfg->i_frequency == 0 )
{
msg_Warn( p_obj, "cannot create service_id=%" PRIu16 " ts_id=%" PRIu16 " (no config)",
i_service_id, p_ts->i_ts_id );
More information about the vlc-commits
mailing list