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
5b0430a1
Commit
5b0430a1
authored
Dec 21, 2023
by
Huw Davies
Committed by
Alexandre Julliard
Dec 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Free the buffer in the early return paths.
parent
55b3e609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
libresolv.c
dlls/dnsapi/libresolv.c
+6
-1
No files found.
dlls/dnsapi/libresolv.c
View file @
5b0430a1
...
...
@@ -192,11 +192,16 @@ static NTSTATUS resolv_get_serverlist( void *args )
if
(
filter
(
buf
[
i
].
sin
.
sin_family
,
params
->
family
))
continue
;
found
++
;
}
if
(
!
found
)
return
DNS_ERROR_NO_DNS_SERVERS
;
if
(
!
found
)
{
free
(
buf
);
return
DNS_ERROR_NO_DNS_SERVERS
;
}
needed
=
FIELD_OFFSET
(
DNS_ADDR_ARRAY
,
AddrArray
[
found
]);
if
(
!
addrs
||
*
params
->
len
<
needed
)
{
free
(
buf
);
*
params
->
len
=
needed
;
return
!
addrs
?
ERROR_SUCCESS
:
ERROR_MORE_DATA
;
}
...
...
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