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
f512b3c0
Commit
f512b3c0
authored
Apr 12, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Skip non-address records in dns_only_query().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54819
parent
5b5dd96f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
protocol.c
dlls/ws2_32/protocol.c
+4
-2
No files found.
dlls/ws2_32/protocol.c
View file @
f512b3c0
...
...
@@ -96,8 +96,8 @@ static int dns_only_query( const char *node, const struct addrinfo *hints, struc
}
}
for
(
ptr
=
rec
;
ptr
;
ptr
=
ptr
->
pNext
)
count
++
;
for
(
ptr
=
rec6
;
ptr
;
ptr
=
ptr
->
pNext
)
count
++
;
for
(
ptr
=
rec
;
ptr
;
ptr
=
ptr
->
pNext
)
{
if
(
ptr
->
wType
==
DNS_TYPE_A
)
count
++
;
}
;
for
(
ptr
=
rec6
;
ptr
;
ptr
=
ptr
->
pNext
)
{
if
(
ptr
->
wType
==
DNS_TYPE_AAAA
)
count
++
;
}
;
if
(
!
count
)
{
DnsRecordListFree
(
(
DNS_RECORD
*
)
rec
,
DnsFreeRecordList
);
...
...
@@ -114,6 +114,7 @@ static int dns_only_query( const char *node, const struct addrinfo *hints, struc
for
(
ptr
=
rec
;
ptr
;
ptr
=
ptr
->
pNext
)
{
if
(
ptr
->
wType
!=
DNS_TYPE_A
)
continue
;
info
->
ai_family
=
AF_INET
;
info
->
ai_socktype
=
hints
->
ai_socktype
;
info
->
ai_protocol
=
hints
->
ai_protocol
;
...
...
@@ -128,6 +129,7 @@ static int dns_only_query( const char *node, const struct addrinfo *hints, struc
}
for
(
ptr
=
rec6
;
ptr
;
ptr
=
ptr
->
pNext
)
{
if
(
ptr
->
wType
!=
DNS_TYPE_AAAA
)
continue
;
info
->
ai_family
=
AF_INET6
;
info
->
ai_socktype
=
hints
->
ai_socktype
;
info
->
ai_protocol
=
hints
->
ai_protocol
;
...
...
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