network-manager-applet r1156 - in trunk: . src/connection-editor



Author: dcbw
Date: Thu Feb 12 23:55:42 2009
New Revision: 1156
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1156&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:
   trunk/ChangeLog
   trunk/src/connection-editor/vpn-helpers.c

Modified: trunk/src/connection-editor/vpn-helpers.c
==============================================================================
--- trunk/src/connection-editor/vpn-helpers.c	(original)
+++ trunk/src/connection-editor/vpn-helpers.c	Thu Feb 12 23:55:42 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]