]> git.sesse.net Git - vlc/commitdiff
Fix use of uninitialized memory with raw UDP
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 19 Feb 2007 20:35:25 +0000 (20:35 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 19 Feb 2007 20:35:25 +0000 (20:35 +0000)
(seriously, you should have switched to RTP for ages though)

modules/access/udp.c

index 709bdb04ecc67c49b87fb65c5f7538aac7b0d243..6ecc005cb64cb31221d7363e474aba17c44a40d5 100644 (file)
@@ -224,6 +224,7 @@ static int Open( vlc_object_t *p_this )
     ACCESS_SET_CALLBACKS( NULL, BlockChoose, Control, NULL );
     p_access->info.b_prebuffered = VLC_FALSE;
     MALLOC_ERR( p_access->p_sys, access_sys_t ); p_sys = p_access->p_sys;
+    memset (p_sys, 0, sizeof (*p_sys));
 
     switch (proto)
     {