Skip to content

Commit f64287f

Browse files
committed
Firewall: Groups - missing lock while refactoring config, closes #8766
1 parent 6de0f4d commit f64287f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/GroupController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function searchItemAction()
6363
public function setItemAction($uuid)
6464
{
6565
$refactored = false;
66+
Config::getInstance()->lock();
6667
$node = $this->getModel()->getNodeByReference('ifgroupentry.' . $uuid);
6768
$old_name = $node != null ? (string)$node->ifname : null;
6869
if ($old_name !== null && $this->request->isPost() && $this->request->hasPost("group")) {

0 commit comments

Comments
 (0)