Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
bff300be
Commit
bff300be
authored
Jan 09, 2001
by
Michael Sawyer
Browse files
Check that zone->zmgr is non-null before dereferencing
parent
5bb4ceb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/zone.c
View file @
bff300be
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.29
2
2001/01/09 00:
43:21 marka
Exp $ */
/* $Id: zone.c,v 1.29
3
2001/01/09 00:
51:53 mws
Exp $ */
#include
<config.h>
...
...
@@ -3599,15 +3599,18 @@ zone_shutdown(isc_task_t *task, isc_event_t *event) {
/*
* If we were waiting for xfrin quota, step out of
* the queue.
* If there's no zone manager, we can't be waiting for the
* xfrin quota
*/
RWLOCK
(
&
zone
->
zmgr
->
rwlock
,
isc_rwlocktype_write
);
if
(
zone
->
statelist
==
&
zone
->
zmgr
->
waiting_for_xfrin
)
{
ISC_LIST_UNLINK
(
zone
->
zmgr
->
waiting_for_xfrin
,
zone
,
statelink
);
zone
->
statelist
=
NULL
;
if
(
zone
->
zmgr
!=
NULL
)
{
RWLOCK
(
&
zone
->
zmgr
->
rwlock
,
isc_rwlocktype_write
);
if
(
zone
->
statelist
==
&
zone
->
zmgr
->
waiting_for_xfrin
)
{
ISC_LIST_UNLINK
(
zone
->
zmgr
->
waiting_for_xfrin
,
zone
,
statelink
);
zone
->
statelist
=
NULL
;
}
RWUNLOCK
(
&
zone
->
zmgr
->
rwlock
,
isc_rwlocktype_write
);
}
RWUNLOCK
(
&
zone
->
zmgr
->
rwlock
,
isc_rwlocktype_write
);
LOCK_ZONE
(
zone
);
if
(
zone
->
xfr
!=
NULL
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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