Don't need secrets in static key mode

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4033 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-09-04 15:00:13 +00:00
parent 7fd25854da
commit 72e6d91816

View file

@ -822,8 +822,11 @@ real_connect (NMVPNPlugin *plugin,
if (!nm_openvpn_properties_validate (s_vpn->data, error))
return FALSE;
if (!nm_openvpn_properties_validate (s_vpn->secrets, error))
return FALSE;
/* Static Key doesn't need secrets; the rest do */
if (strcmp (connection_type, NM_OPENVPN_CONTYPE_STATIC_KEY)) {
if (!nm_openvpn_properties_validate (s_vpn->secrets, error))
return FALSE;
}
/* Finally try to start OpenVPN */
if (!nm_openvpn_start_openvpn_binary (NM_OPENVPN_PLUGIN (plugin),