]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: netifd: fix null dereference in config_init for missing devices
authorFelix Fietkau <nbd@nbd.name>
Sun, 15 Feb 2026 08:23:57 +0000 (08:23 +0000)
committerFelix Fietkau <nbd@nbd.name>
Mon, 16 Feb 2026 08:19:37 +0000 (09:19 +0100)
commit8b994ed3970ffd02ee77889304ca32bdbecdb1f3
treee1a8d45a292c93d0bf59cdb20331f5423483d38d
parentf012e8d50a31546eb96267ab751f316d2cf46fc9
wifi-scripts: netifd: fix null dereference in config_init for missing devices

Add optional chaining when accessing device config in the wifi-iface
loop to handle cases where a referenced device doesn't exist.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit ebd2fefea5152d032cded1ccc7cf6e731b5bbcc2)
package/network/config/wifi-scripts/files/lib/netifd/wireless.uc