Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2329f919
Commit
2329f919
authored
Jan 11, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't free name before the IPv6 lookup.
parent
d8d4aed8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
utility.c
dlls/wininet/utility.c
+6
-6
No files found.
dlls/wininet/utility.c
View file @
2329f919
...
...
@@ -184,17 +184,17 @@ BOOL GetAddress(LPCWSTR lpszServerName, INTERNET_PORT nServerPort,
hints
.
ai_family
=
AF_INET
;
ret
=
getaddrinfo
(
name
,
NULL
,
&
hints
,
&
res
);
heap_free
(
name
);
if
(
ret
!=
0
)
{
TRACE
(
"failed to get IPv4 address of %s (%s), retrying with IPv6
\n
"
,
debugstr_w
(
lpszServerName
),
gai_strerror
(
ret
));
hints
.
ai_family
=
AF_INET6
;
ret
=
getaddrinfo
(
name
,
NULL
,
&
hints
,
&
res
);
if
(
ret
!=
0
)
{
TRACE
(
"failed to get address of %s (%s)
\n
"
,
debugstr_w
(
lpszServerName
),
gai_strerror
(
ret
));
return
FALSE
;
}
}
heap_free
(
name
);
if
(
ret
!=
0
)
{
TRACE
(
"failed to get address of %s (%s)
\n
"
,
debugstr_w
(
lpszServerName
),
gai_strerror
(
ret
));
return
FALSE
;
}
if
(
*
sa_len
<
res
->
ai_addrlen
)
{
...
...
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