diff options
| author | Gordon Sim <gsim@apache.org> | 2011-08-26 10:51:26 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2011-08-26 10:51:26 +0000 |
| commit | c130ae16366efe63f9b944d46c980310ce60c546 (patch) | |
| tree | 3a3c51fc08e011528cafe562cff7f2e87f3e0b8a /cpp/src/qpid/broker/ConnectionHandler.cpp | |
| parent | 59dac3e4372efe2ae160d6d96556a763c44eef97 (diff) | |
| download | qpid-python-c130ae16366efe63f9b944d46c980310ce60c546.tar.gz | |
QPID-3455: Don't treat unspecified frame size as implying the minimum value. Prevent infinite loop when unable to decode frame in SASL security layer.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1162060 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/ConnectionHandler.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/ConnectionHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/ConnectionHandler.cpp b/cpp/src/qpid/broker/ConnectionHandler.cpp index 948aa04417..015002a70c 100644 --- a/cpp/src/qpid/broker/ConnectionHandler.cpp +++ b/cpp/src/qpid/broker/ConnectionHandler.cpp @@ -192,7 +192,7 @@ void ConnectionHandler::Handler::secureOk(const string& response) void ConnectionHandler::Handler::tuneOk(uint16_t /*channelmax*/, uint16_t framemax, uint16_t heartbeat) { - connection.setFrameMax(framemax); + if (framemax) connection.setFrameMax(framemax); connection.setHeartbeatInterval(heartbeat); } |
