diff options
author | Martin Willi <martin@revosec.ch> | 2014-10-10 11:42:28 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-10-10 11:43:43 +0200 |
commit | ef90d5ab1598cd5d81556ddb18845a7d4dc75d8c (patch) | |
tree | 4838a830bb5a1e5b9079655a768e3ee6c2f6587c /src/swanctl/command.c | |
parent | 05db0f97e3051150a38511fdb35c9d58bb6e989b (diff) | |
parent | 7431ad0de54d25c5ac08054972896a48d75f9f70 (diff) | |
download | strongswan-ef90d5ab1598cd5d81556ddb18845a7d4dc75d8c.tar.bz2 strongswan-ef90d5ab1598cd5d81556ddb18845a7d4dc75d8c.tar.xz |
Merge branch 'vici-ruby'
Adds a ruby gem for the VICI protocol, along with some documentation
improvements and some minor fixes to vici and swanctl.
Diffstat (limited to 'src/swanctl/command.c')
-rw-r--r-- | src/swanctl/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/swanctl/command.c b/src/swanctl/command.c index dbe16c3b7..1c079ec3a 100644 --- a/src/swanctl/command.c +++ b/src/swanctl/command.c @@ -267,9 +267,10 @@ static int call_command(command_t *cmd) conn = vici_connect(uri); if (!conn) { + ret = errno; command_usage("connecting to '%s' URI failed: %s", uri ?: "default", strerror(errno)); - return errno; + return ret; } ret = cmd->call(conn); vici_disconnect(conn); |