- Fix analyzer review failure in rpz action override code to not

crash on unlocking the local zone lock.
This commit is contained in:
W.C.A. Wijngaards 2021-11-05 12:02:50 +01:00
parent 24eded6ef9
commit 0006c08f15
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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;