hostapd: add missing ucv_get call in wpa_supplicant
authorFelix Fietkau <nbd@nbd.name>
Thu, 10 Aug 2023 14:32:08 +0000 (16:32 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 10 Aug 2023 17:09:42 +0000 (19:09 +0200)
Should be harmless, but fix it just in case

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/src/wpa_supplicant/ucode.c

index 660357a43d9ccfe0f0cb8c2e063480b641424d44..eec398032924c296b07206c1a9a3716e16fa0a00 100644 (file)
@@ -63,7 +63,7 @@ void wpas_ucode_free_bss(struct wpa_supplicant *wpa_s)
        if (wpa_ucode_call_prepare("iface_remove"))
                return;
 
-       uc_value_push(ucv_string_new(wpa_s->ifname));
+       uc_value_push(ucv_get(ucv_string_new(wpa_s->ifname)));
        uc_value_push(ucv_get(val));
        ucv_put(wpa_ucode_call(2));
        ucv_gc(vm);