1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

use proper length to copy data for WI_RID_DESIRED_SSID (was smashing

ic_des_chan that immediately follows)
This commit is contained in:
Sam Leffler 2003-06-29 20:12:17 +00:00
parent 8be0d57010
commit b9ee58c4af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117040

View File

@ -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: