Stop processing if STA VLAN bind fails

This commit is contained in:
Jouni Malinen 2010-04-15 23:44:10 +03:00
parent 91faf6b948
commit 4254100d6c
3 changed files with 14 additions and 4 deletions

View file

@ -1282,7 +1282,8 @@ ieee802_1x_receive_auth(struct radius_msg *msg, struct radius_msg *req,
}
#endif /* CONFIG_NO_VLAN */
ap_sta_bind_vlan(hapd, sta, old_vlanid);
if (ap_sta_bind_vlan(hapd, sta, old_vlanid) < 0)
break;
/* RFC 3580, Ch. 3.17 */
if (session_timeout_set && termination_action ==