Minor changes

This commit is contained in:
andrea
2015-08-01 16:45:28 +02:00
parent 8b48a82968
commit 5bfc73fafb
3 changed files with 8 additions and 3 deletions
@@ -66,6 +66,7 @@ class PublishDecoder extends DemuxDecoder {
in.resetReaderIndex();
return;
}
//[MQTT-3.3.2-2] The Topic Name in the PUBLISH Packet MUST NOT contain wildcard characters.
if (topic.contains("+") || topic.contains("#")) {
throw new CorruptedFrameException("Received a PUBLISH with topic containing wild card chars, topic: " + topic);
}