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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user