Browse Source

hostapd: add missing ucv_get call in wpa_supplicant

Should be harmless, but fix it just in case

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 2 years ago
parent
commit
fe8bf65d1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/network/services/hostapd/src/wpa_supplicant/ucode.c

+ 1 - 1
package/network/services/hostapd/src/wpa_supplicant/ucode.c

@@ -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);