Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
41303be0
Commit
41303be0
authored
Aug 24, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use AI_CANONNAME when no node name is given.
parent
022716f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+7
-4
No files found.
src/network/getaddrinfo.c
View file @
41303be0
...
@@ -558,7 +558,6 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
...
@@ -558,7 +558,6 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
return
i_val
;
return
i_val
;
}
}
int
vlc_getaddrinfo
(
vlc_object_t
*
p_this
,
const
char
*
node
,
int
vlc_getaddrinfo
(
vlc_object_t
*
p_this
,
const
char
*
node
,
int
i_port
,
const
struct
addrinfo
*
p_hints
,
int
i_port
,
const
struct
addrinfo
*
p_hints
,
struct
addrinfo
**
res
)
struct
addrinfo
**
res
)
...
@@ -581,12 +580,15 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
...
@@ -581,12 +580,15 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
/* Check if we have to force ipv4 or ipv6 */
/* Check if we have to force ipv4 or ipv6 */
memset
(
&
hints
,
0
,
sizeof
(
hints
));
memset
(
&
hints
,
0
,
sizeof
(
hints
));
if
(
p_hints
!=
NULL
)
if
(
p_hints
!=
NULL
)
{
{
int
ai_flags
=
AI_NUMERICHOST
|
AI_PASSIVE
;
if
(
node
)
ai_flags
|=
AI_CANONNAME
;
hints
.
ai_family
=
p_hints
->
ai_family
;
hints
.
ai_family
=
p_hints
->
ai_family
;
hints
.
ai_socktype
=
p_hints
->
ai_socktype
;
hints
.
ai_socktype
=
p_hints
->
ai_socktype
;
hints
.
ai_protocol
=
p_hints
->
ai_protocol
;
hints
.
ai_protocol
=
p_hints
->
ai_protocol
;
hints
.
ai_flags
=
p_hints
->
ai_flags
&
(
AI_NUMERICHOST
|
AI_PASSIVE
|
AI_CANONNAME
);
hints
.
ai_flags
=
p_hints
->
ai_flags
&
(
ai_flags
);
}
}
#ifdef AI_NUMERICSERV
#ifdef AI_NUMERICSERV
/* we only ever use port *numbers* */
/* we only ever use port *numbers* */
...
@@ -618,6 +620,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
...
@@ -618,6 +620,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
if
(
(
node
==
NULL
)
||
(
node
[
0
]
==
'\0'
)
)
if
(
(
node
==
NULL
)
||
(
node
[
0
]
==
'\0'
)
)
{
{
psz_node
=
NULL
;
psz_node
=
NULL
;
hints
.
ai_flags
&=
~
AI_CANONNAME
;
}
}
else
else
{
{
...
...
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