Multi-AP: Fix backhaul SSID printing condition
ssid->ssid is an array so comparison against NULL is pointless; check
ssid->ssid_len instead.
Fixes: 871d6648f5
("hostapd: Add multi_ap settings to get_config() output")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
1ba8a315cd
commit
6518c72b02
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue