mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
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
d5d9eb5095
commit
89f0549d37
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue