Commit 79fd238a authored by Sergey Prokhorov's avatar Sergey Prokhorov

Merge pull request #21 from ndorf/ndorf_ipsec

ipsec: missing curly braces led to always false return
parents 103576ab 994cf5a5
......@@ -962,13 +962,14 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin,
rename(tmp_secrets, "/etc/ipsec.secrets");
sys += system("PATH=\"/sbin:/usr/sbin:/usr/local/sbin:$PATH\" ipsec secrets");
if (sys != 0)
if (sys != 0) {
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"));
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