2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00

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
This commit is contained in:
Justin Pettit
2010-01-11 16:57:29 -08:00
parent 3603f8da20
commit d35a4ea82f

View File

@@ -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);