Do not include NAS-Port attribute with AID 0
Do not include a NAS-Port attribute in Access-Request and Accounting-Request packets where the Association ID (AID) is 0, i.e., not yet assigned or known. Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
This commit is contained in:
parent
86a318f34a
commit
8468189e90
1 changed files with 1 additions and 0 deletions
|
@ -414,6 +414,7 @@ static int add_common_radius_sta_attr(struct hostapd_data *hapd,
|
|||
|
||||
if (!hostapd_config_get_radius_attr(req_attr,
|
||||
RADIUS_ATTR_NAS_PORT) &&
|
||||
sta->aid > 0 &&
|
||||
!radius_msg_add_attr_int32(msg, RADIUS_ATTR_NAS_PORT, sta->aid)) {
|
||||
wpa_printf(MSG_ERROR, "Could not add NAS-Port");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue