interface: fix interface memory corruption openwrt-23.05
authorFelix Fietkau <nbd@nbd.name>
Tue, 21 Nov 2023 05:45:09 +0000 (06:45 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 4 Mar 2024 07:54:49 +0000 (07:54 +0000)
commit7c6759792502fa45ac1e38aa5644f8cf8f290894
tree59784a6e268f497291813d8ada81083f302d9c4b
parentd45c443aa1e6514aab58bbbf9311913e484d31a6
interface: fix interface memory corruption

- set vlist keep_old=true, because the iface_update_cb expects it
- update ifindex on reload

Fixes: openwrt/openwrt/issues/14120
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 9040335e102b83a2dd7df64aa88d0dd762d78a86)
interface.c