From: Gurucharan Shetty Date: Thu, 27 Mar 2014 22:40:25 +0000 (-0700) Subject: ovs-appctl: Close the connection during error. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~21 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=156f7a40e3f93a4498b6d16bf698c624a81ad1fb;p=sliver-openvswitch.git ovs-appctl: Close the connection during error. When we send a wrong command to a Open vSwitch daemon, it returns an error. In that case, close the connection to the daemon. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index 9fd0234e3..c6a7fd489 100644 --- a/utilities/ovs-appctl.c +++ b/utilities/ovs-appctl.c @@ -63,6 +63,7 @@ main(int argc, char *argv[]) } if (cmd_error) { + jsonrpc_close(client); fputs(cmd_error, stderr); ovs_error(0, "%s: server returned an error", target); exit(2);