Commit 6ccfada5 authored by Clément Stenac's avatar Clément Stenac

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

parent 0c0ca771
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* standard.c * standard.c
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * 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> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -59,7 +59,7 @@ struct sout_stream_sys_t ...@@ -59,7 +59,7 @@ struct sout_stream_sys_t
{ {
sout_mux_t *p_mux; sout_mux_t *p_mux;
sap_session_t *p_sap; sap_session_t *p_sap;
unsigned int b_sap; vlc_bool_t b_sap;
}; };
/***************************************************************************** /*****************************************************************************
......
...@@ -98,6 +98,7 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout , ...@@ -98,6 +98,7 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout ,
if( !( p_network = module_Need( p_sout, "network", psz_network ) ) ) if( !( p_network = module_Need( p_sout, "network", psz_network ) ) )
{ {
msg_Warn( p_sout, "failed to open a connection (udp)" ); msg_Warn( p_sout, "failed to open a connection (udp)" );
return NULL;
} }
module_Unneed( p_sout, p_network ); module_Unneed( p_sout, p_network );
...@@ -167,6 +168,7 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout , ...@@ -167,6 +168,7 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout ,
if( !( p_network = module_Need( p_sout, "network", psz_network ) ) ) if( !( p_network = module_Need( p_sout, "network", psz_network ) ) )
{ {
msg_Warn( p_sout, "failed to open a connection (udp)" ); msg_Warn( p_sout, "failed to open a connection (udp)" );
return NULL;
} }
module_Unneed( p_sout, p_network ); module_Unneed( p_sout, p_network );
......
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