Commit e964ac8f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [18891]

  Fix use of uninitialized memory with raw UDP 
parent 489ab5b3
...@@ -201,6 +201,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -201,6 +201,7 @@ static int Open( vlc_object_t *p_this )
p_access->info.b_prebuffered = VLC_FALSE; p_access->info.b_prebuffered = VLC_FALSE;
p_access->info.i_title = 0; p_access->info.i_title = 0;
p_access->info.i_seekpoint = 0; p_access->info.i_seekpoint = 0;
memset (p_sys, 0, sizeof (*p_sys));
p_access->p_sys = p_sys = malloc( sizeof( access_sys_t ) ); p_access->p_sys = p_sys = malloc( sizeof( access_sys_t ) );
p_sys->fd = net_OpenUDP( p_access, psz_bind_addr, i_bind_port, p_sys->fd = net_OpenUDP( p_access, psz_bind_addr, i_bind_port,
......
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