summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-03-05 19:12:25 +0000
committersam <sam@FreeBSD.org>2007-03-05 19:12:25 +0000
commit7c030f485b1ce7e0d2778461dee784124861947d (patch)
tree199e5c0a5a189d6ccbd2cd7f123f54ae5083989a /sys
parentb30fdbdb818c27a660c7939e967a10201404a4f3 (diff)
downloadFreeBSD-src-7c030f485b1ce7e0d2778461dee784124861947d.zip
FreeBSD-src-7c030f485b1ce7e0d2778461dee784124861947d.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index e5e6f42..bba8c16 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -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;
OpenPOWER on IntegriCloud