mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix: null check
This commit is contained in:
parent
c83b2e7fff
commit
1fcd0f66c5
1 changed files with 4 additions and 1 deletions
|
@ -988,7 +988,10 @@ pcrc(const poly_t message, const poly_t divisor, const poly_t init, const poly_t
|
||||||
/* 0 <= ofs <= BMP_BIT, location of the first bit of the result */
|
/* 0 <= ofs <= BMP_BIT, location of the first bit of the result */
|
||||||
pshift(&result, result, 0UL, ofs, (init.length > max + divisor.length ? init.length - max - divisor.length : 0UL) + divisor.length + ofs, 0UL);
|
pshift(&result, result, 0UL, ofs, (init.length > max + divisor.length ? init.length - max - divisor.length : 0UL) + divisor.length + ofs, 0UL);
|
||||||
}
|
}
|
||||||
psum(&result, xorout, 0UL);
|
|
||||||
|
if ( result.bitmap != NULL )
|
||||||
|
psum(&result, xorout, 0UL);
|
||||||
|
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue