DISPATCH-847 - Fixed Coverity issue 126591 (Improper omission of brackets)
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/3f5c3aa9 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/3f5c3aa9 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/3f5c3aa9 Branch: refs/heads/master Commit: 3f5c3aa9cf5369f2259886ae262e6486487fea24 Parents: abc1db8 Author: Ted Ross <tr...@redhat.com> Authored: Wed Oct 4 10:42:34 2017 -0400 Committer: Ted Ross <tr...@redhat.com> Committed: Wed Oct 4 10:42:34 2017 -0400 ---------------------------------------------------------------------- src/connection_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/3f5c3aa9/src/connection_manager.c ---------------------------------------------------------------------- diff --git a/src/connection_manager.c b/src/connection_manager.c index 9a9d61d..40db56a 100644 --- a/src/connection_manager.c +++ b/src/connection_manager.c @@ -309,8 +309,9 @@ static qd_error_t load_server_config(qd_dispatch_t *qd, qd_server_config_t *conf config->max_sessions = qd_entity_get_long(entity, "maxSessions"); CHECK(); uint64_t ssn_frames = qd_entity_opt_long(entity, "maxSessionFrames", 0); CHECK(); config->idle_timeout_seconds = qd_entity_get_long(entity, "idleTimeoutSeconds"); CHECK(); - if (is_listener) + if (is_listener) { config->initial_handshake_timeout_seconds = qd_entity_get_long(entity, "initialHandshakeTimeoutSeconds"); CHECK(); + } config->sasl_username = qd_entity_opt_string(entity, "saslUsername", 0); CHECK(); config->sasl_password = qd_entity_opt_string(entity, "saslPassword", 0); CHECK(); config->sasl_mechanisms = qd_entity_opt_string(entity, "saslMechanisms", 0); CHECK(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org