mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
Services: Unbound DNS: Overrides - missing lock in del_host_override action.
This commit is contained in:
parent
7b1528a823
commit
0f3daf70e4
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue