Fixed a segfault that could happen if you have ipv6 support enabled, but no address
authorClément Stenac <zorglub@videolan.org>
Mon, 23 Jun 2003 13:45:30 +0000 (13:45 +0000)
committerClément Stenac <zorglub@videolan.org>
Mon, 23 Jun 2003 13:45:30 +0000 (13:45 +0000)
modules/stream_out/standard.c
src/stream_output/announce.c

index 1894562..077dc11 100644 (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;
 };
 
 /*****************************************************************************
index b0585a0..7c80864 100644 (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 );