mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 21:40:08 +01:00
wifi: don't ignore trailing NUL byte when comparing SSID
nm_utils_same_ssid() has a comment
* Earlier versions of the Linux kernel added a NULL byte to the end of the
* SSID to enable easy printing of the SSID on the console or in a terminal,
* but this behavior was problematic (SSIDs are simply byte arrays, not strings)
* and thus was changed. This function compensates for that behavior at the
* cost of some compatibility with odd SSIDs that may legitimately have trailing
* NULLs, even though that is functionally pointless.
and the functionality was introduced by commit
ccb13f0bdd.
There was only place left that calls nm_utils_same_ssid().
I really don't think this is the right approach, nor is it clear
that this is still necessary. Also, it seems to only matter with
WEXT, and we should not have such an ugly hack in all cases.
This commit is contained in:
parent
57c371e32f
commit
331d44afa6
1 changed files with 1 additions and 1 deletions
|
|
@ -1039,7 +1039,7 @@ nm_wifi_ap_check_compatible (NMWifiAP *self,
|
|||
if ( ssid && priv->ssid &&
|
||||
!nm_utils_same_ssid (g_bytes_get_data (ssid, NULL), g_bytes_get_size (ssid),
|
||||
priv->ssid->data, priv->ssid->len,
|
||||
TRUE))
|
||||
FALSE))
|
||||
return FALSE;
|
||||
|
||||
bssid = nm_setting_wireless_get_bssid (s_wireless);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue