Additional null check on iv_auth

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3484 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mtaylor 2008-04-09 20:48:50 +00:00
parent 85119ae227
commit 3f17ff7335

View File

@ -1360,7 +1360,7 @@ __ieee80211_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int
ieee80211_reset_bss(vap);
break;
}
if (vap->iv_auth->ia_detach != NULL)
if (vap->iv_auth != NULL && vap->iv_auth->ia_detach != NULL)
vap->iv_auth->ia_detach(vap);
break;
case IEEE80211_S_SCAN: