correct inital bounds check on returning scan results; this does not

paper over catching an error as the case was already handled, albeit
in a somewhat surprising way (the caller received zero'd data)

Submitted by:	sephe
MFC after:	2 weeks
This commit is contained in:
sam 2007-03-05 19:12:25 +00:00
parent b30fdbdb81
commit 7c030f485b

View File

@ -1172,7 +1172,7 @@ ieee80211_ioctl_getscanresults(struct ieee80211com *ic, struct ieee80211req *ire
struct scanresultsreq req;
int error;
if (ireq->i_len < sizeof(struct scanresultsreq))
if (ireq->i_len < sizeof(struct ieee80211req_scan_result))
return EFAULT;
error = 0;