From d35a4ea82fb76398025d833d30d11d0d68050e56 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 11 Jan 2010 16:57:29 -0800 Subject: [PATCH] ovs-vsctl: Print correct fail-mode When printing the fail-mode, ovs-vsctl would always attempt to print the top-level one--even if it didn't exist. So, in addition to sometimes being wrong, it could cause segfaults. Thanks to Peter Balland for reporting the error. Bug #2374 --- utilities/ovs-vsctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 3a73a232..725988a5 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -1345,7 +1345,7 @@ cmd_get_fail_mode(struct vsctl_context *ctx) } if (fail_mode && strlen(fail_mode)) { - ds_put_format(&ctx->output, "%s\n", info.ctrl->fail_mode); + ds_put_format(&ctx->output, "%s\n", fail_mode); } free_info(&info); -- 2.30.2