Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
19b11860
Commit
19b11860
authored
Aug 22, 2005
by
gbazin
Browse files
* src/misc/net.c: fixed segfault.
parent
e179dada
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/net.c
View file @
19b11860
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment