diff --git a/client/src/cmdlfindala.c b/client/src/cmdlfindala.c index 69c1e5a55..6cf5ed28f 100644 --- a/client/src/cmdlfindala.c +++ b/client/src/cmdlfindala.c @@ -838,11 +838,12 @@ int detectIndala(uint8_t *dest, size_t *size, uint8_t *invert) { goto inv; } -inv: if (res == 0) { return -4; } +inv: + *invert ^= 1; if (*invert && idx > 0) {