mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 01:22:25 +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]);
|
||||
|
||||
if (+hostapd[ifname].config.strict_forwarding)
|
||||
if (+hostapd[ifname].config?.strict_forwarding)
|
||||
ubus.call('bridger', 'set_device_config', {
|
||||
name: ifname,
|
||||
redirect: wan_ports[0]
|
||||
|
||||
Reference in New Issue
Block a user