From e55e5e42767a4d8e045da4d1c82715c64a9967ca Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 12 Dec 2005 17:38:53 +0000 Subject: [PATCH] correct parameter check when retrieving the current channel list MFC after: 3 days --- sys/net80211/ieee80211_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 38b8ece35070..8e676f29705d 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); }