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:
parent
8be0d57010
commit
b9ee58c4af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117040
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user