Commit 19b11860 authored by Gildas Bazin's avatar Gildas Bazin

* src/misc/net.c: fixed segfault.

parent e179dada
......@@ -511,6 +511,9 @@ int __net_OpenUDP( vlc_object_t *p_this, const char *psz_bind, int i_bind,
network_socket_t sock;
module_t *p_network = NULL;
if( psz_server == NULL ) psz_server = "";
if( psz_bind == NULL ) psz_bind = "";
/* Prepare the network_socket_t structure */
sock.psz_bind_addr = psz_bind;
sock.i_bind_port = i_bind;
......@@ -520,11 +523,6 @@ int __net_OpenUDP( vlc_object_t *p_this, const char *psz_bind, int i_bind,
sock.v6only = 0;
sock.i_handle = -1;
if( psz_server == NULL )
psz_server = "";
if( psz_bind == NULL )
psz_bind = "";
msg_Dbg( p_this, "net: connecting to '[%s]:%d@[%s]:%d'",
psz_server, i_server, psz_bind, i_bind );
......
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