summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2015-05-27 13:02:52 +0000
committerGordon Sim <gsim@apache.org>2015-05-27 13:02:52 +0000
commitd7ff17002e8f865e1270fb3362b941750dcda296 (patch)
tree69fdd1a6a48306d85b108ce79585083a4415bb7f /cpp
parent8f939d1370628b5ee7f86f44c0219aa5e4d9314c (diff)
downloadqpid-python-d7ff17002e8f865e1270fb3362b941750dcda296.tar.gz
NO-JIRA: relax check when auth=no
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1682007 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/ConnectionHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/ConnectionHandler.cpp b/cpp/src/qpid/broker/ConnectionHandler.cpp
index 8972040be5..dc8a071b71 100644
--- a/cpp/src/qpid/broker/ConnectionHandler.cpp
+++ b/cpp/src/qpid/broker/ConnectionHandler.cpp
@@ -234,7 +234,7 @@ void ConnectionHandler::Handler::tuneOk(uint16_t /*channelmax*/,
void ConnectionHandler::Handler::open(const string& /*virtualHost*/,
const framing::Array& /*capabilities*/, bool /*insist*/)
{
- if (connection.getUserId().empty()) {
+ if (connection.getUserId().empty() && connection.getBroker().isAuthenticating()) {
throw ConnectionForcedException("Not authenticated!");
}