[vlc-commits] access: dvb: fix null deref/wrong member (cid 1362061, 1362062)

Francois Cartegnie git at videolan.org
Wed Nov 22 18:05:03 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 15:02:22 2017 +0100| [59e8bcb143b689c49377f2d287b5bc6650fa33ca] | committer: Francois Cartegnie

access: dvb: fix null deref/wrong member (cid 1362061, 1362062)

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

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

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index ae38e43826..8b0b2e0eba 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -1607,11 +1607,11 @@ static void scan_session_Destroy( scan_t *p_scan, scan_session_t *p_session )
 
     /* Do the same for all other networks */
     for( size_t i=0; i<p_session->others.i_nit; i++ )
-        ParseNIT( p_scan->p_obj, p_scan, p_nit, NULL );
+        ParseNIT( p_scan->p_obj, p_scan, p_session->others.pp_nit[i], NULL );
 
     /* Map service name for all other ts/networks */
     for( size_t i=0; i<p_session->others.i_sdt; i++ )
-        ParseSDT( p_scan->p_obj, p_scan, p_sdt );
+        ParseSDT( p_scan->p_obj, p_scan, p_session->others.pp_sdt[i] );
 
     /* */
     scan_session_Delete( p_session );



More information about the vlc-commits mailing list