You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2017/08/15 19:29:48 UTC
qpid-dispatch git commit: DISPATH-775: Fix typo in error handling
Repository: qpid-dispatch
Updated Branches:
refs/heads/master e0cdeaaf5 -> 374053b62
DISPATH-775: Fix typo in error handling
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/374053b6
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/374053b6
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/374053b6
Branch: refs/heads/master
Commit: 374053b62390ded77ddd563fef1b5bd6833e3d25
Parents: e0cdeaa
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue Aug 15 20:28:50 2017 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue Aug 15 20:29:28 2017 +0100
----------------------------------------------------------------------
src/remote_sasl.c | 2 +-
tests/system_tests_auth_service_plugin.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/374053b6/src/remote_sasl.c
----------------------------------------------------------------------
diff --git a/src/remote_sasl.c b/src/remote_sasl.c
index e037454..4ef5086 100644
--- a/src/remote_sasl.c
+++ b/src/remote_sasl.c
@@ -414,7 +414,7 @@ void qdr_handle_authentication_service_connection_event(pn_event_t *e)
} else if (pn_event_type(e) == PN_TRANSPORT_CLOSED) {
pnx_sasl_logf(transport, "disconnected from authentication service");
qdr_sasl_relay_t* impl = (qdr_sasl_relay_t*) pnx_sasl_get_context(transport);
- if (impl->downstream) {
+ if (!impl->downstream_released && impl->downstream) {
pn_connection_release(impl->downstream);
impl->downstream = 0;
pnx_sasl_logf(transport, "authentication service: downstream connection released");
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/374053b6/tests/system_tests_auth_service_plugin.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_auth_service_plugin.py b/tests/system_tests_auth_service_plugin.py
index 50121c7..2c03ac5 100644
--- a/tests/system_tests_auth_service_plugin.py
+++ b/tests/system_tests_auth_service_plugin.py
@@ -130,7 +130,7 @@ class SimpleConnect(MessagingHandler):
if event.connection:
event.connection.close()
else:
- print("ERROR: %s" % error)
+ print("ERROR: %s" % self.error)
def run(self):
Container(self).run()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org