interface: fix use-after-free bug when rewriting resolv.conf
authorFelix Fietkau <nbd@nbd.name>
Thu, 25 Aug 2022 19:09:24 +0000 (21:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 25 Aug 2022 19:13:35 +0000 (21:13 +0200)
commit76d2d41b7355e02f95fbfa79affbd232fb090595
tree1f7756be7a86a513b849d6bcb9769e5274b57978
parentbfa039c414bc6613cc5361aaf5fa6baf5fa0264b
interface: fix use-after-free bug when rewriting resolv.conf

After the call to interface_handle_config_change, the iface pointer will no
longer be valid if the interface has been deleted from the config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface.c