From 156f7a40e3f93a4498b6d16bf698c624a81ad1fb Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Thu, 27 Mar 2014 15:40:25 -0700 Subject: [PATCH] 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 --- utilities/ovs-appctl.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.0