Fix signature generation for SET_EXTERNAL_PLUGIN in client

This commit is contained in:
Alexandre Paillier
2023-11-21 14:20:22 +01:00
parent 58ea0e5cab
commit edad008ed1
2 changed files with 4 additions and 2 deletions

View File

@@ -48,7 +48,9 @@ void handleSetExternalPlugin(uint8_t p1,
workBuffer + payload_size,
dataLength - payload_size)) {
#ifndef HAVE_BYPASS_SIGNATURES
PRINTF("Invalid plugin signature %.*H\n", payload_size, workBuffer);
PRINTF("Invalid plugin signature %.*H\n",
dataLength - payload_size,
workBuffer + payload_size);
THROW(0x6A80);
#endif
}