NetworkManager r3832 - in trunk/vpn-daemons/openvpn: . src



Author: dcbw
Date: Fri Jul 18 18:36:26 2008
New Revision: 3832
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3832&view=rev

Log:
2008-07-18  Dan Williams  <dcbw redhat com>

	* src/nm-openvpn-service.c
		- (nm_openvpn_start_openvpn_binary): only add tls-auth direction if
			it's non-empty (Nathaniel McCallum)



Modified:
   trunk/vpn-daemons/openvpn/ChangeLog
   trunk/vpn-daemons/openvpn/src/nm-openvpn-service.c

Modified: trunk/vpn-daemons/openvpn/src/nm-openvpn-service.c
==============================================================================
--- trunk/vpn-daemons/openvpn/src/nm-openvpn-service.c	(original)
+++ trunk/vpn-daemons/openvpn/src/nm-openvpn-service.c	Fri Jul 18 18:36:26 2008
@@ -444,7 +444,7 @@
 		g_ptr_array_add (openvpn_argv, (gpointer) g_value_get_string ((GValue *) tmp));
 
 		tmp = g_hash_table_lookup (properties, NM_OPENVPN_KEY_TA_DIR);
-		if (tmp)
+		if (tmp && strlen (g_value_get_string (tmp)))
 			g_ptr_array_add (openvpn_argv, (gpointer) g_value_get_string ((GValue *) tmp));
 	}
 



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