From 59e8bcb143b689c49377f2d287b5bc6650fa33ca Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Wed, 22 Nov 2017 15:02:22 +0100 Subject: [PATCH] access: dvb: fix null deref/wrong member (cid 1362061, 1362062) --- 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; iothers.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; iothers.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 ); -- 2.11.4.GIT