From: Jouni Malinen Date: Sun, 21 Feb 2021 10:33:33 +0000 (+0200) Subject: Multi-AP: Fix backhaul SSID printing condition X-Git-Tag: hostap_2_10~532 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6518c72b02b26d801efe725a471c9676a191cc81;p=thirdparty%2Fhostap.git 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 --- 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,