NetworkManager r3370 - in trunk: . system-settings/plugins/ifcfg-fedora



Author: dcbw
Date: Mon Mar  3 01:02:42 2008
New Revision: 3370
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3370&view=rev

Log:
2008-03-02  Dan Williams  <dcbw redhat com>

	* system-settings/plugins/ifcfg-fedora/parser.c
		- (make_wireless_setting): fail connection creation on missing SSID



Modified:
   trunk/ChangeLog
   trunk/system-settings/plugins/ifcfg-fedora/parser.c

Modified: trunk/system-settings/plugins/ifcfg-fedora/parser.c
==============================================================================
--- trunk/system-settings/plugins/ifcfg-fedora/parser.c	(original)
+++ trunk/system-settings/plugins/ifcfg-fedora/parser.c	Mon Mar  3 01:02:42 2008
@@ -576,6 +576,9 @@
 		s_wireless->ssid = g_byte_array_sized_new (strlen (value));
 		g_byte_array_append (s_wireless->ssid, (const guint8 *) value, len);
 		g_free (value);
+	} else {
+		g_set_error (error, ifcfg_plugin_error_quark (), 0, "Missing SSID");
+		goto error;
 	}
 
 	value = svGetValue (ifcfg, "MODE");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]