Skip to content

Commit

Permalink
ovs-appctl: Close the connection during error.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed Mar 28, 2014
1 parent 5878877 commit 156f7a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utilities/ovs-appctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 156f7a4

Please sign in to comment.