aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorMichael Braun <michael-dev@fami-braun.de>2015-04-10 12:49:46 (GMT)
committerJouni Malinen <j@w1.fi>2015-04-13 12:26:40 (GMT)
commit3ffdeb7ac8e8efdfaadddbd890de49ce3e7cc956 (patch)
treea27050ca345961d97d33dc068a4af471474f9911 /src/radius
parent1d0a917f3613e6ef82c14ba4f2fd86af169ea686 (diff)
downloadhostap-3ffdeb7ac8e8efdfaadddbd890de49ce3e7cc956.zip
hostap-3ffdeb7ac8e8efdfaadddbd890de49ce3e7cc956.tar.gz
hostap-3ffdeb7ac8e8efdfaadddbd890de49ce3e7cc956.tar.bz2
Fix RSN preauthentication with dynamic_vlan enabled but unused
sta->vlan_id == -1 means no VLAN, as does vlan_id = 0. Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radius/radius.c b/src/radius/radius.c
index 8d878a4..2c01b3f 100644
--- a/src/radius/radius.c
+++ b/src/radius/radius.c
@@ -1425,7 +1425,7 @@ struct radius_tunnel_attrs {
/**
* radius_msg_get_vlanid - Parse RADIUS attributes for VLAN tunnel information
* @msg: RADIUS message
- * Returns: VLAN ID for the first tunnel configuration of -1 if none is found
+ * Returns: VLAN ID for the first tunnel configuration or 0 if none is found
*/
int radius_msg_get_vlanid(struct radius_msg *msg)
{
@@ -1488,7 +1488,7 @@ int radius_msg_get_vlanid(struct radius_msg *msg)
return tun->vlanid;
}
- return -1;
+ return 0;
}