network-manager-applet r1157 - in branches/NETWORKMANAGER_APPLET_0_7: . src/connection-editor



Author: dcbw
Date: Thu Feb 12 23:57:41 2009
New Revision: 1157
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1157&view=rev

Log:
2009-02-12  Dan Williams  <dcbw redhat com>

	* src/connection-editor/vpn-helpers.c
		- (export_vpn_to_file_cb): fix export validtity checks (rh #480496)



Modified:
   branches/NETWORKMANAGER_APPLET_0_7/ChangeLog
   branches/NETWORKMANAGER_APPLET_0_7/src/connection-editor/vpn-helpers.c

Modified: branches/NETWORKMANAGER_APPLET_0_7/src/connection-editor/vpn-helpers.c
==============================================================================
--- branches/NETWORKMANAGER_APPLET_0_7/src/connection-editor/vpn-helpers.c	(original)
+++ branches/NETWORKMANAGER_APPLET_0_7/src/connection-editor/vpn-helpers.c	Thu Feb 12 23:57:41 2009
@@ -326,10 +326,10 @@
 		goto done;
 	}
 
-	s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN));
+	s_vpn = (NMSettingVPN *) nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN);
 	service_type = s_vpn ? nm_setting_vpn_get_service_type (s_vpn) : NULL;
 
-	if (service_type) {
+	if (!service_type) {
 		g_set_error (&error, 0, 0, "VPN setting invalid");
 		goto done;
 	}



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