Fix signing problem reported by @scalz

http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors/103
This commit is contained in:
Henrik Ekblad
2015-07-28 19:44:46 +02:00
parent b789f11a04
commit 79c4cee475
+1 -1
View File
@@ -343,7 +343,7 @@ boolean MySensor::sendRoute(MyMessage &message) {
#ifdef MY_SIGNING_FEATURE
// If destination is known to require signed messages and we are the sender, sign this message unless it is an ACK or a handshake message
if (DO_SIGN(message.destination) && message.sender == nc.nodeId && !mGetAck(message) && mGetLength(msg) &&
if (DO_SIGN(message.destination) && message.sender == nc.nodeId && !mGetAck(message) && mGetLength(message) &&
(mGetCommand(message) != C_INTERNAL ||
(message.type != I_GET_NONCE && message.type != I_GET_NONCE_RESPONSE && message.type != I_REQUEST_SIGNING &&
message.type != I_ID_REQUEST && message.type != I_ID_RESPONSE &&