projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not include NAS-Port attribute with AID 0
[mech_eap.git]
/
src
/
ap
/
ieee802_1x.c
diff --git
a/src/ap/ieee802_1x.c
b/src/ap/ieee802_1x.c
index
42b0299
..
80ff996
100644
(file)
--- a/
src/ap/ieee802_1x.c
+++ b/
src/ap/ieee802_1x.c
@@
-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;