Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
e700cbf9
Commit
e700cbf9
authored
Oct 01, 2012
by
Ghislain MARY
Browse files
Fix crash on Windows.
parent
54e1d72f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mtu.c
View file @
e700cbf9
...
...
@@ -101,7 +101,11 @@ int ms_discover_mtu(const char *host)
hints
.
ai_family
=
PF_UNSPEC
;
hints
.
ai_flags
=
AI_NUMERICHOST
;
err
=
getaddrinfo
(
host
,
NULL
,
&
hints
,
&
ai
);
if
(
err
>=
0
)
family
=
ai
->
ai_family
;
if
((
err
!=
0
)
&&
(
ai
!=
NULL
))
{
family
=
ai
->
ai_family
;
freeaddrinfo
(
ai
);
ai
=
NULL
;
}
memset
(
&
hints
,
0
,
sizeof
(
hints
));
hints
.
ai_family
=
family
;
...
...
Write
Preview
Markdown
is supported
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