mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-20 14:08:36 +02:00
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:
parent
7fd25854da
commit
72e6d91816
1 changed files with 5 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue