]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- rpz trigger, unlock and remove node when rpz is disabled with action override.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 14 Jan 2021 14:31:33 +0000 (15:31 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 14 Jan 2021 14:31:33 +0000 (15:31 +0100)
services/rpz.c

index b89583e8e7e66992eff5bbfdafa69ab314e8dfdd..00f3b5a3d5580af04157604cd0e07669ac1b6078 100644 (file)
@@ -1365,6 +1365,10 @@ rpz_resolve_client_action_and_zone(struct auth_zones* az, struct query_info* qin
                        stats->rpz_action[r->action_override]++;
                        lock_rw_unlock(&z->lock);
                        z = NULL;
+                       if(node != NULL) {
+                               lock_rw_unlock(&node->lock);
+                               node = NULL;
+                       }
                }
                if(z || node) {
                        break;