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:
Dan Williams 2011-05-18 10:21:10 -05:00
parent 2b12825faa
commit 60c1870674

View file

@ -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,