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:
parent
b30fdbdb81
commit
7c030f485b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user