Wessel
18 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Mesh.cpp
|
|
|
@ -40,7 +40,7 @@ int Mesh::searchChannelsByHash(const uint8_t* hash, GroupChannel channels[], int |
|
|
|
|
|
|
|
DispatcherAction Mesh::onRecvPacket(Packet* pkt) { |
|
|
|
if (pkt->isRouteDirect() && pkt->getPayloadType() == PAYLOAD_TYPE_TRACE) { |
|
|
|
if (pkt->path_len < MAX_PATH_SIZE) { |
|
|
|
if (pkt->path_len < MAX_PATH_SIZE && pkt->payload_len >= 9) { // need trace_tag(4) + auth_code(4) + flags(1)
|
|
|
|
uint8_t i = 0; |
|
|
|
uint32_t trace_tag; |
|
|
|
memcpy(&trace_tag, &pkt->payload[i], 4); i += 4; |
|
|
|
|