Commit 267e1019 authored by Aurelien Nephtali's avatar Aurelien Nephtali Committed by Derk-Jan Hartman

telnet: Fix crash when the telnet port cannot be bound

Fixes #1902
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent f399a950
......@@ -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;
......
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