diff options
author | sam <sam@FreeBSD.org> | 2003-06-29 20:12:17 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-06-29 20:12:17 +0000 |
commit | 709e58cfa7b9aed6a6ffd26e4b847f765dc64ceb (patch) | |
tree | b4726a819d353e5d00303eb62297021dd4b35ce7 /sys | |
parent | 1fb2cade2b075d1dddffb36b809b297aa5df90a5 (diff) | |
download | FreeBSD-src-709e58cfa7b9aed6a6ffd26e4b847f765dc64ceb.zip FreeBSD-src-709e58cfa7b9aed6a6ffd26e4b847f765dc64ceb.tar.gz |
use proper length to copy data for WI_RID_DESIRED_SSID (was smashing
ic_des_chan that immediately follows)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 6139636..46c015c 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -404,7 +404,7 @@ ieee80211_cfgset(struct ifnet *ifp, u_long cmd, caddr_t data) } memset(ic->ic_des_essid, 0, sizeof(ic->ic_des_essid)); ic->ic_des_esslen = le16toh(wreq.wi_val[0]) * 2; - memcpy(ic->ic_des_essid, &wreq.wi_val[1], len); + memcpy(ic->ic_des_essid, &wreq.wi_val[1], ic->ic_des_esslen); error = ENETRESET; break; case WI_RID_CURRENT_BSSID: |