mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
ucentral-event: fix possible null pointer deref
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -179,7 +179,7 @@ function hostapd_add(path, obj) {
|
|||||||
|
|
||||||
printf('%.J\n', hostapd[ifname]);
|
printf('%.J\n', hostapd[ifname]);
|
||||||
|
|
||||||
if (+hostapd[ifname].config.strict_forwarding)
|
if (+hostapd[ifname].config?.strict_forwarding)
|
||||||
ubus.call('bridger', 'set_device_config', {
|
ubus.call('bridger', 'set_device_config', {
|
||||||
name: ifname,
|
name: ifname,
|
||||||
redirect: wan_ports[0]
|
redirect: wan_ports[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user