mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 22:10:09 +01:00
core: increase SSID buffer size to fix 32-character SSIDs (rh #485312, lp281755)
This commit is contained in:
parent
de15a81c5e
commit
b9028ffd7e
1 changed files with 2 additions and 2 deletions
|
|
@ -1408,7 +1408,7 @@ nm_device_wifi_get_ssid (NMDeviceWifi *self)
|
|||
NMDeviceWifiPrivate *priv;
|
||||
int sk;
|
||||
struct iwreq wrq;
|
||||
char ssid[IW_ESSID_MAX_SIZE + 1];
|
||||
char ssid[IW_ESSID_MAX_SIZE + 2];
|
||||
guint32 len;
|
||||
|
||||
g_return_val_if_fail (self != NULL, NULL);
|
||||
|
|
@ -1429,7 +1429,7 @@ nm_device_wifi_get_ssid (NMDeviceWifi *self)
|
|||
if (ioctl (sk, SIOCGIWESSID, &wrq) < 0) {
|
||||
nm_warning ("Couldn't get SSID: %d", errno);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
if (priv->ssid) {
|
||||
g_byte_array_free (priv->ssid, TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue