diff --git a/src/devices/revolt_nc5462.c b/src/devices/revolt_nc5462.c index 7273df97d..17066bdf4 100644 --- a/src/devices/revolt_nc5462.c +++ b/src/devices/revolt_nc5462.c @@ -65,6 +65,9 @@ static int revolt_nc5462_decode(r_device *decoder, bitbuffer_t *bitbuffer) uint8_t *b = bitbuffer->bb[0]; int sum = add_bytes(b, 11); + if (sum == 0) { + return DECODE_FAIL_SANITY; + } int chk = b[11]; if ((sum & 0xff) != chk) { return DECODE_FAIL_MIC;