Commit 994cf5a5 authored by Nathan Dorfman's avatar Nathan Dorfman

ipsec: missing curly braces led to always false return

parent 103576ab
...@@ -962,13 +962,14 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin, ...@@ -962,13 +962,14 @@ 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_set_error (error, g_set_error (error,
NM_VPN_PLUGIN_ERROR, NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_LAUNCH_FAILED, NM_VPN_PLUGIN_ERROR_LAUNCH_FAILED,
"%s", "%s",
_("Possible error in IPSec setup.")); _("Possible error in IPSec setup."));
return FALSE; 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