1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

Fixed a segfault that could happen if you have ipv6 support enabled, but no address

This commit is contained in:
Clément Stenac 2003-06-23 13:45:30 +00:00
parent 0c0ca771b8
commit 6ccfada5ee
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* standard.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: standard.c,v 1.5 2003/06/23 11:41:26 zorglub Exp $
* $Id: standard.c,v 1.6 2003/06/23 13:45:30 zorglub Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -59,7 +59,7 @@ struct sout_stream_sys_t
{
sout_mux_t *p_mux;
sap_session_t *p_sap;
unsigned int b_sap;
vlc_bool_t b_sap;
};
/*****************************************************************************

View File

@ -98,6 +98,7 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout ,
if( !( p_network = module_Need( p_sout, "network", psz_network ) ) )
{
msg_Warn( p_sout, "failed to open a connection (udp)" );
return NULL;
}
module_Unneed( p_sout, p_network );
@ -167,6 +168,7 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout ,
if( !( p_network = module_Need( p_sout, "network", psz_network ) ) )
{
msg_Warn( p_sout, "failed to open a connection (udp)" );
return NULL;
}
module_Unneed( p_sout, p_network );