When we send a wrong command to a Open vSwitch daemon, it returns an error. In that case, we should gracefully close the connection to the daemon.
Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> --- utilities/ovs-appctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index 9fd0234..c6a7fd4 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); -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev