summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-12-12 17:38:53 +0000
committersam <sam@FreeBSD.org>2005-12-12 17:38:53 +0000
commit4b58922473cf884bce48eab874ea136f1301ca0b (patch)
treecd8a201be2b597f97a20c0241ada3a7ae1c83a39 /sys/net80211
parentbf92a086991fb93f5a34743cd174d7167faeef49 (diff)
downloadFreeBSD-src-4b58922473cf884bce48eab874ea136f1301ca0b.zip
FreeBSD-src-4b58922473cf884bce48eab874ea136f1301ca0b.tar.gz
correct parameter check when retrieving the current channel list
MFC after: 3 days
Diffstat (limited to 'sys/net80211')
-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 38b8ece..8e676f2 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -884,7 +884,7 @@ static int
ieee80211_ioctl_getchanlist(struct ieee80211com *ic, struct ieee80211req *ireq)
{
- if (sizeof(ic->ic_chan_active) > ireq->i_len)
+ if (sizeof(ic->ic_chan_active) < ireq->i_len)
ireq->i_len = sizeof(ic->ic_chan_active);
return copyout(&ic->ic_chan_active, ireq->i_data, ireq->i_len);
}
OpenPOWER on IntegriCloud