Skip to content

Commit 7e946d1

Browse files
authored
Move ifndef to fix test (#4950)
1 parent c3b9d49 commit 7e946d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mesh/CryptoEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ bool CryptoEngine::decryptCurve25519(uint32_t fromNode, uint64_t packetNum, size
102102
uint8_t *auth; // set to last 8 bytes of text?
103103
uint32_t extraNonce; // pointer was not really used
104104
auth = bytes + numBytes - 12;
105-
#ifndef PIO_UNIT_TESTING
106105
memcpy(&extraNonce, auth + 8,
107106
sizeof(uint32_t)); // do not use dereference on potential non aligned pointers : (uint32_t *)(auth + 8);
107+
#ifndef PIO_UNIT_TESTING
108108
LOG_INFO("Random nonce value: %d\n", extraNonce);
109109
meshtastic_NodeInfoLite *node = nodeDB->getMeshNode(fromNode);
110110

0 commit comments

Comments
 (0)