check for invalid input on gateway

To prevent incomplete or chunked data being sent by the gateway
This commit is contained in:
Marcelo Aquino
2015-02-11 11:24:45 -02:00
parent 7b99a2ef94
commit ca272743e6
+3
View File
@@ -179,6 +179,9 @@ void MyGateway::parseAndSend(char *commandBuffer) {
}
i++;
}
// Check for invalid input
if (i != 6)
return;
if (destination==GATEWAY_ADDRESS && command==C_INTERNAL) {
// Handle messages directed to gateway