You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2013/07/25 20:26:20 UTC

svn commit: r1507084 - /qpid/branches/0.24/qpid/cpp/src/qpid/acl/AclConnectionCounter.cpp

Author: chug
Date: Thu Jul 25 18:26:20 2013
New Revision: 1507084

URL: http://svn.apache.org/r1507084
Log:
QPID-5011: merge fix to 0.24 branch

Modified:
    qpid/branches/0.24/qpid/cpp/src/qpid/acl/AclConnectionCounter.cpp

Modified: qpid/branches/0.24/qpid/cpp/src/qpid/acl/AclConnectionCounter.cpp
URL: http://svn.apache.org/viewvc/qpid/branches/0.24/qpid/cpp/src/qpid/acl/AclConnectionCounter.cpp?rev=1507084&r1=1507083&r2=1507084&view=diff
==============================================================================
--- qpid/branches/0.24/qpid/cpp/src/qpid/acl/AclConnectionCounter.cpp (original)
+++ qpid/branches/0.24/qpid/cpp/src/qpid/acl/AclConnectionCounter.cpp Thu Jul 25 18:26:20 2013
@@ -102,10 +102,12 @@ bool ConnectionCounter::countConnectionL
     if (eRef != theMap.end()) {
         count = (uint16_t)(*eRef).second + 1;
         (*eRef).second = count;
-        result = (enforceLimit ? count <= theLimit : true);
     } else {
         theMap[theName] = count = 1;
     }
+    if (enforceLimit) { 
+        result = count <= theLimit;
+    }
     if (emitLog) {
         QPID_LOG(trace, "ACL ConnectionApprover user=" << theName
             << " limit=" << theLimit



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org