mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
chg: unsigned byte can't be less than zero.
This commit is contained in:
parent
027cda47d2
commit
dcec5627d1
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ void *mifare_cryto_postprocess_data(desfiretag_t tag, void *data, size_t *nbytes
|
|||
case AS_LEGACY:
|
||||
if (communication_settings & MAC_VERIFY) {
|
||||
*nbytes -= key_macing_length(key);
|
||||
if (*nbytes <= 0) {
|
||||
if (*nbytes == 0) {
|
||||
*nbytes = -1;
|
||||
res = NULL;
|
||||
#ifdef WITH_DEBUG
|
||||
|
|
Loading…
Reference in a new issue