]> git.sesse.net Git - vlc/commitdiff
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 18945626d1ce2ee0b534c076f1ab9163922b98d0..077dc115be3c6c183f4bbec12d70a507d7680630 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 b0585a0c451a64f3654d0bc4c822658ddd3bf073..7c8086432c1b685258db95771441839a986ad686 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 );