Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
635
Issues
635
List
Boards
Labels
Service Desk
Milestones
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
ISC Open Source Projects
BIND
Commits
3a9c7bb8
Commit
3a9c7bb8
authored
Mar 19, 2019
by
Mark Andrews
Committed by
Evan Hunt
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move item_out test inside lock in dns_dispatch_getnext()
(cherry picked from commit
60c42f84
)
parent
b381efcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lib/dns/dispatch.c
lib/dns/dispatch.c
+8
-4
No files found.
lib/dns/dispatch.c
View file @
3a9c7bb8
...
...
@@ -134,7 +134,7 @@ struct dns_dispentry {
isc_task_t
*
task
;
isc_taskaction_t
action
;
void
*
arg
;
bool
item_out
;
bool
item_out
;
dispsocket_t
*
dispsocket
;
ISC_LIST
(
dns_dispatchevent_t
)
items
;
ISC_LINK
(
dns_dispentry_t
)
link
;
...
...
@@ -3422,13 +3422,14 @@ dns_dispatch_getnext(dns_dispentry_t *resp, dns_dispatchevent_t **sockevent) {
disp
=
resp
->
disp
;
REQUIRE
(
VALID_DISPATCH
(
disp
));
REQUIRE
(
resp
->
item_out
==
true
);
resp
->
item_out
=
false
;
ev
=
*
sockevent
;
*
sockevent
=
NULL
;
LOCK
(
&
disp
->
lock
);
REQUIRE
(
resp
->
item_out
==
true
);
resp
->
item_out
=
false
;
if
(
ev
->
buffer
.
base
!=
NULL
)
free_buffer
(
disp
,
ev
->
buffer
.
base
,
ev
->
buffer
.
length
);
free_devent
(
disp
,
ev
);
...
...
@@ -3573,6 +3574,9 @@ dns_dispatch_removeresponse(dns_dispentry_t **resp,
isc_task_send
(
disp
->
task
[
0
],
&
disp
->
ctlevent
);
}
/*
* disp must be locked.
*/
static
void
do_cancel
(
dns_dispatch_t
*
disp
)
{
dns_dispatchevent_t
*
ev
;
...
...
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