mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-03 13:29:36 -05:00
- Fix analyzer review failure in rpz action override code to not
crash on unlocking the local zone lock.
This commit is contained in:
parent
24eded6ef9
commit
0006c08f15
2 changed files with 6 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
|||
5 November 2021: Wouter
|
||||
- Fix that forward-zone name is documented as the full name of the
|
||||
zone. It is not relative but a fully qualified domain name.
|
||||
- Fix analyzer review failure in rpz action override code to not
|
||||
crash on unlocking the local zone lock.
|
||||
|
||||
2 November 2021: Wouter
|
||||
- Fix #552: Unbound assumes index.html exists on RPZ host.
|
||||
|
|
|
|||
|
|
@ -1476,8 +1476,10 @@ rpz_resolve_client_action_and_zone(struct auth_zones* az, struct query_info* qin
|
|||
r->action_override,
|
||||
qinfo, repinfo, NULL, r->log_name);
|
||||
stats->rpz_action[r->action_override]++;
|
||||
lock_rw_unlock(&z->lock);
|
||||
z = NULL;
|
||||
if(z != NULL) {
|
||||
lock_rw_unlock(&z->lock);
|
||||
z = NULL;
|
||||
}
|
||||
if(node != NULL) {
|
||||
lock_rw_unlock(&node->lock);
|
||||
node = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue