Commit a34a1126 authored by Jean-Paul Saman's avatar Jean-Paul Saman

tables/tot.c: Dereference a null pointer (CID 17262)

The pointer to p_subdec should have been evaluated on line 119.
parent 0b1c6c6d
......@@ -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,"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment