From 6f65229d66f6431ec5be2b73b20e7b1a3501936e Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 26 Jul 2023 14:30:01 +0200 Subject: [PATCH] ucentral-event: fix possible null pointer deref Signed-off-by: John Crispin --- feeds/ucentral/ucentral-event/files/ucentral-event | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/ucentral/ucentral-event/files/ucentral-event b/feeds/ucentral/ucentral-event/files/ucentral-event index cad45a194..595f37aa2 100755 --- a/feeds/ucentral/ucentral-event/files/ucentral-event +++ b/feeds/ucentral/ucentral-event/files/ucentral-event @@ -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]