[vlc-devel] commit: telnet: Fix crash when the telnet port cannot be bound ( Aurelien Nephtali )

git version control git at videolan.org
Sun Aug 24 00:06:36 CEST 2008


vlc | branch: master | Aurelien Nephtali <aurelien sitadelle.com> | Sun Aug 24 00:08:45 2008 +0200| [267e10191f216cef6d08b66fd2d025d8650fbbb9] | committer: Derk-Jan Hartman 

telnet: Fix crash when the telnet port cannot be bound

Fixes #1902

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=267e10191f216cef6d08b66fd2d025d8650fbbb9
---

 modules/control/telnet.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/control/telnet.c b/modules/control/telnet.c
index 4efdfc9..0be9910 100644
--- a/modules/control/telnet.c
+++ b/modules/control/telnet.c
@@ -195,14 +195,14 @@ static int Open( vlc_object_t *p_this )
     p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
     if( !p_intf->p_sys )
     {
-        vlm_Delete( p_intf->p_sys->mediatheque );
+        vlm_Delete( mediatheque );
         vlc_UrlClean( &url );
         return VLC_ENOMEM;
     }
     if( ( p_intf->p_sys->pi_fd = net_ListenTCP( p_intf, url.psz_host, url.i_port ) ) == NULL )
     {
         msg_Err( p_intf, "cannot listen for telnet" );
-        vlm_Delete( p_intf->p_sys->mediatheque );
+        vlm_Delete( mediatheque );
         vlc_UrlClean( &url );
         free( p_intf->p_sys );
         return VLC_EGENERIC;




More information about the vlc-devel mailing list