[vlc-commits] access: dvb: fix null dereference on failed scan

Francois Cartegnie git at videolan.org
Sun Apr 10 13:56:09 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr  4 17:50:12 2016 +0200| [bb6b5b5447dc4ff2385349d2c715d513d7e950bf] | committer: Francois Cartegnie

access: dvb: fix null dereference on failed scan

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb6b5b5447dc4ff2385349d2c715d513d7e950bf
---

 modules/access/dvb/scan.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index dfe972e..ff08c85 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -222,6 +222,8 @@ scan_t *scan_New( vlc_object_t *p_obj, const scan_parameter_t *p_parameter )
 
 void scan_Destroy( scan_t *p_scan )
 {
+    if( !p_scan )
+        return;
     if( p_scan->p_dialog_id != NULL )
         vlc_dialog_release( p_scan->p_obj, p_scan->p_dialog_id );
 
diff --git a/modules/access/dvb/scan_list.c b/modules/access/dvb/scan_list.c
new file mode 100644
index 0000000..e69de29
diff --git a/modules/access/dvb/scan_list.h b/modules/access/dvb/scan_list.h
new file mode 100644
index 0000000..e69de29



More information about the vlc-commits mailing list