Commit 6b2fcb1c authored by Tristan Matthews's avatar Tristan Matthews

hds: fix dereference after NULL check (cid #1224532)

parent d6b004b2
...@@ -583,6 +583,12 @@ static void parse_BootstrapData( vlc_object_t* p_this, ...@@ -583,6 +583,12 @@ static void parse_BootstrapData( vlc_object_t* p_this,
data_end > data_p && data_end > data_p &&
(data_p = parse_asrt( p_this, s, data_p, data_end )) ); (data_p = parse_asrt( p_this, s, data_p, data_end )) );
if( ! data_p )
{
msg_Warn( p_this, "Couldn't find afrt data" );
return;
}
uint8_t afrt_count = *data_p; uint8_t afrt_count = *data_p;
data_p++; data_p++;
......
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