mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 08:58:02 +02:00
Revert "core: fix crash while connecting with AddAndActivateConnection() and SSID is missing"
This reverts commit 2b12825faa.
Fixes the problem, but the real issue was clients passing AP objects
that don't have an SSID; we need to reject connection creation
requests where the SSID can't be found.
This commit is contained in:
parent
2b12825faa
commit
60c1870674
1 changed files with 3 additions and 2 deletions
|
|
@ -1465,12 +1465,13 @@ real_complete_connection (NMDevice *device,
|
|||
*/
|
||||
if (!nm_ap_complete_connection (ap,
|
||||
connection,
|
||||
ssid ? is_manf_default_ssid (ssid) : FALSE,
|
||||
is_manf_default_ssid (ssid),
|
||||
error))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
str_ssid = ssid ? nm_utils_ssid_to_utf8 (ssid) : g_strdup (_("<hidden>"));
|
||||
g_assert (ssid);
|
||||
str_ssid = nm_utils_ssid_to_utf8 (ssid);
|
||||
format = g_strdup_printf ("%s %%d", str_ssid);
|
||||
|
||||
nm_utils_complete_generic (connection,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue