Fix: don't continue, if IPSec start commands failed.

parent 7f66059c
...@@ -963,7 +963,12 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin, ...@@ -963,7 +963,12 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin,
rename(tmp_secrets, "/etc/ipsec.secrets"); rename(tmp_secrets, "/etc/ipsec.secrets");
sys += system("PATH=\"/sbin:/usr/sbin:/usr/local/sbin:$PATH\" ipsec secrets"); sys += system("PATH=\"/sbin:/usr/sbin:/usr/local/sbin:$PATH\" ipsec secrets");
if (sys != 0) if (sys != 0)
g_warning("Possible error in IPSec setup."); g_set_error (error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_LAUNCH_FAILED,
"%s",
_("Possible error in IPSec setup."));
return FALSE;
g_message(_("ipsec ready for action")); g_message(_("ipsec ready for action"));
return TRUE; return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment