X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fap%2Fieee802_11.c;h=6ce94b21c415135e9b7057c289864aa89fab60d7;hb=4254100d6c8a51b3efebbd2c3925aad2510f0043;hp=4986381c0dd394a741af88e6a0b5c8bbcd5aefb7;hpb=91faf6b948a2f98a0f2c46487efe431bd4204df2;p=libeap.git diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 4986381..6ce94b2 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -1620,10 +1620,12 @@ static void handle_assoc_cb(struct hostapd_data *hapd, * so bind it to the selected VLAN interface now, since the * interface selection is not going to change anymore. */ - ap_sta_bind_vlan(hapd, sta, 0); + if (ap_sta_bind_vlan(hapd, sta, 0) < 0) + goto fail; } else if (sta->vlan_id) { /* VLAN ID already set (e.g., by PMKSA caching), so bind STA */ - ap_sta_bind_vlan(hapd, sta, 0); + if (ap_sta_bind_vlan(hapd, sta, 0) < 0) + goto fail; } hapd->drv.set_sta_flags(hapd, sta);