Skip to content

Commit 9740268

Browse files
committed
Issue #540 - Allow Auth packet on read.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent bea7787 commit 9740268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/wire

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/wire/MqttInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public MqttWireMessage readMqttWireMessage() throws IOException, MqttException {
9797

9898
byte type = (byte) ((first >>> 4) & 0x0F);
9999
if ((type < MqttWireMessage.MESSAGE_TYPE_CONNECT) ||
100-
(type > MqttWireMessage.MESSAGE_TYPE_DISCONNECT)) {
100+
(type > MqttWireMessage.MESSAGE_TYPE_AUTH)) {
101101
// Invalid MQTT message type...
102102
throw ExceptionHelper.createMqttException(MqttClientException.REASON_CODE_INVALID_MESSAGE);
103103
}

0 commit comments

Comments
 (0)