ucentral-event: fix possible null pointer deref

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-07-26 14:30:01 +02:00
parent 7bf62b76bd
commit 6f65229d66

View File

@@ -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]