We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 629840e commit f8f15f6Copy full SHA for f8f15f6
drivers/net/wireless/st/cw1200/sta.c
@@ -1291,7 +1291,7 @@ static void cw1200_do_join(struct cw1200_common *priv)
1291
rcu_read_lock();
1292
ssidie = ieee80211_bss_get_ie(bss, WLAN_EID_SSID);
1293
if (ssidie) {
1294
- join.ssid_len = ssidie[1];
+ join.ssid_len = min(ssidie[1], IEEE80211_MAX_SSID_LEN);
1295
memcpy(join.ssid, &ssidie[2], join.ssid_len);
1296
}
1297
rcu_read_unlock();
0 commit comments