From 6518c72b02b26d801efe725a471c9676a191cc81 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 21 Feb 2021 12:33:33 +0200 Subject: [PATCH] Multi-AP: Fix backhaul SSID printing condition ssid->ssid is an array so comparison against NULL is pointless; check ssid->ssid_len instead. Fixes: 871d6648f502 ("hostapd: Add multi_ap settings to get_config() output") Signed-off-by: Jouni Malinen --- hostapd/ctrl_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 5859d1605..325455791 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -1233,7 +1233,7 @@ static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd, return pos - buf; pos += ret; - if (ssid->ssid) { + if (ssid->ssid_len) { ret = os_snprintf(pos, end - pos, "multi_ap_backhaul_ssid=%s\n", wpa_ssid_txt(ssid->ssid,