From 0f3daf70e4a5eaf848dace40eb2f5bdabb2ef296 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 1 Dec 2025 11:20:24 +0100 Subject: [PATCH] Services: Unbound DNS: Overrides - missing lock in del_host_override action. --- .../app/controllers/OPNsense/Unbound/Api/SettingsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php index e11429b533..8c28aa2087 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php @@ -184,6 +184,7 @@ class SettingsController extends ApiMutableModelControllerBase public function delHostOverrideAction($uuid) { /* Make sure the linked aliases are deleted as well. */ + Config::getInstance()->lock(); $node = $this->getModel(); foreach ($node->aliases->alias->iterateItems() as $alias_uuid => $alias) { if ($alias->host == $uuid) {