wireless: fix memory corruption bug when using vlans/station entries in the config
authorFelix Fietkau <nbd@nbd.name>
Tue, 18 May 2021 04:20:00 +0000 (06:20 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 18 May 2021 04:20:01 +0000 (06:20 +0200)
commit87e469be0c08db92b0fb0f4817cc177c158cdf42
tree09e167bea078cf64d13217570290f003ea7d5ff0
parent2a97fd006c3b09c1aeab30ac881c9ac902365d57
wireless: fix memory corruption bug when using vlans/station entries in the config

On config reload, any vif entries in the config added to the vlist will be
matched against existing ones, and the old entries preserved.
This means that the vif pointer is no longer valid after vlist_add.
Look up the vif again before using it for vlan/station entries.

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