aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/accounting.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-07 13:07:25 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-07 13:07:25 (GMT)
commit986de33d5c3e11dd08a26ed65eacede8b75aa339 (patch)
treea4cf15f08916a4ac42216e2f1c080fc784a27cc5 /src/ap/accounting.c
parent771e2f7b3302f7741594f9c669a225f5aa64f9e9 (diff)
downloadhostap-986de33d5c3e11dd08a26ed65eacede8b75aa339.zip
hostap-986de33d5c3e11dd08a26ed65eacede8b75aa339.tar.gz
hostap-986de33d5c3e11dd08a26ed65eacede8b75aa339.tar.bz2
Convert remaining SSID routines from char* to u8*
This makes it more explicit that the SSID is not a null terminated C string. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/accounting.c')
-rw-r--r--src/ap/accounting.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/accounting.c b/src/ap/accounting.c
index 0b838a4..e027d53 100644
--- a/src/ap/accounting.c
+++ b/src/ap/accounting.c
@@ -136,7 +136,9 @@ static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
}
os_snprintf(buf, sizeof(buf), RADIUS_802_1X_ADDR_FORMAT ":%s",
- MAC2STR(hapd->own_addr), hapd->conf->ssid.ssid);
+ MAC2STR(hapd->own_addr),
+ wpa_ssid_txt(hapd->conf->ssid.ssid,
+ hapd->conf->ssid.ssid_len));
if (!hostapd_config_get_radius_attr(hapd->conf->radius_acct_req_attr,
RADIUS_ATTR_CALLED_STATION_ID) &&
!radius_msg_add_attr(msg, RADIUS_ATTR_CALLED_STATION_ID,