Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6c477241
Commit
6c477241
authored
Mar 05, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getaddrinfo.c: a word of warning ...
parent
d68bf0d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+2
-0
No files found.
src/network/getaddrinfo.c
View file @
6c477241
...
@@ -498,6 +498,7 @@ static WSAAPI int _ws2_getnameinfo_bind( const struct sockaddr FAR * sa, socklen
...
@@ -498,6 +498,7 @@ static WSAAPI int _ws2_getnameinfo_bind( const struct sockaddr FAR * sa, socklen
GETNAMEINFO
entry
=
(
GETNAMEINFO
)
ws2_find_api
(
TEXT
(
"getnameinfo"
));
GETNAMEINFO
entry
=
(
GETNAMEINFO
)
ws2_find_api
(
TEXT
(
"getnameinfo"
));
if
(
entry
!=
NULL
)
if
(
entry
!=
NULL
)
{
{
/* call API before replacing function pointer to avoid crash */
int
result
=
entry
(
sa
,
salen
,
host
,
hostlen
,
serv
,
servlen
,
flags
);
int
result
=
entry
(
sa
,
salen
,
host
,
hostlen
,
serv
,
servlen
,
flags
);
ws2_getnameinfo
=
entry
;
ws2_getnameinfo
=
entry
;
return
result
;
return
result
;
...
@@ -520,6 +521,7 @@ static WSAAPI int _ws2_getaddrinfo_bind(const char FAR *node, const char FAR *se
...
@@ -520,6 +521,7 @@ static WSAAPI int _ws2_getaddrinfo_bind(const char FAR *node, const char FAR *se
if
((
entry
!=
NULL
)
&&
(
freentry
!=
NULL
))
if
((
entry
!=
NULL
)
&&
(
freentry
!=
NULL
))
{
{
/* call API before replacing function pointer to avoid crash */
int
result
=
entry
(
node
,
service
,
hints
,
res
);
int
result
=
entry
(
node
,
service
,
hints
,
res
);
ws2_freeaddrinfo
=
freentry
;
ws2_freeaddrinfo
=
freentry
;
ws2_getaddrinfo
=
entry
;
ws2_getaddrinfo
=
entry
;
...
...
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