From 0a4abf1c6da6db7d76bcdc1dcbf23a9e3465d37c Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 10 Jul 2024 17:52:29 +0100 Subject: [PATCH] - goose-sec: fixed bug in crc calculation --- src/goose/goose_receiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goose/goose_receiver.c b/src/goose/goose_receiver.c index 480e181f..0157eea6 100644 --- a/src/goose/goose_receiver.c +++ b/src/goose/goose_receiver.c @@ -1012,7 +1012,7 @@ parseGooseMessage(GooseReceiver self, uint8_t* buffer, int numbytes) if (secExtLength > 0) { /* calculate crc */ - uint16_t crc = L2Security_calculateCRC16(self->buffer + gooseStart, 8); + uint16_t crc = L2Security_calculateCRC16(buffer + gooseStart, 8); if (secExtCrc == crc) {