Added checking of valid topicFilter format in unsubscribe

This commit is contained in:
andrea
2015-08-10 23:07:47 +02:00
parent 74aaf603e2
commit bafcca4c58
5 changed files with 36 additions and 13 deletions
@@ -40,7 +40,7 @@ class UnsubscribeDecoder extends DemuxDecoder {
//check qos level
if (message.getQos() != AbstractMessage.QOSType.LEAST_ONE) {
throw new CorruptedFrameException("Found an Usubscribe message with qos other than LEAST_ONE, was: " + message.getQos());
throw new CorruptedFrameException("Found an Unsubscribe message with qos other than LEAST_ONE, was: " + message.getQos());
}
int start = in.readerIndex();