ARTEMIS-500 - possible index out of bounds after amqp sasl handshake

https://issues.apache.org/jira/browse/ARTEMIS-500
This commit is contained in:
Andy Taylor 2016-04-22 11:23:48 +01:00 committed by Martyn Taylor
parent abe5fd609f
commit 76d937fab3
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@ public class ProtonHandlerImpl extends ProtonInitializable implements ProtonHand
try {
if (buffer.getByte(4) == 0x03) {
dispatchSASL();
/*
* there is a chance that if SASL Handshake has been carried out that the capacity may change.
* */
capacity = transport.capacity();
}
}
catch (Throwable ignored) {