Merge pull request #60 from mapnull/hotfix-chk_invalid_gw_input

check for invalid input on gateway
This commit is contained in:
Henrik Ekblad
2015-02-12 22:12:41 +01:00
+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