[libdvbpsi-devel] tables/tot.c: Dereference a null pointer (CID 17262)
Jean-Paul Saman
git at videolan.org
Wed Apr 16 15:53:32 CEST 2014
libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri Apr 11 15:52:53 2014 +0200| [a34a11269dd66f219978a1e72e1573e83944de2f] | committer: Jean-Paul Saman
tables/tot.c: Dereference a null pointer (CID 17262)
The pointer to p_subdec should have been evaluated on line 119.
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=a34a11269dd66f219978a1e72e1573e83944de2f
---
src/tables/tot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tables/tot.c b/src/tables/tot.c
index 9cde087..18b2ba7 100644
--- a/src/tables/tot.c
+++ b/src/tables/tot.c
@@ -116,7 +116,7 @@ void dvbpsi_tot_detach(dvbpsi_t* p_dvbpsi, uint8_t i_table_id,
i_extension = 0; /* NOTE: force to 0 when handling TDT/TOT */
p_subdec = dvbpsi_demuxGetSubDec(p_demux, i_table_id, i_extension);
- if (p_demux == NULL)
+ if (p_subdec == NULL)
{
dvbpsi_error(p_dvbpsi, "TDT/TOT Decoder",
"No such TDT/TOT decoder (table_id == 0x%02x,"
More information about the libdvbpsi-devel
mailing list