mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-13 04:54:56 +08:00
pcs param is sometimes NULL here
This commit is contained in:
parent
2523ac7177
commit
178f9bb142
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ uint16_t mifare_sendcmd_short(struct Crypto1State *pcs, uint8_t crypted, uint8_t
|
||||||
|
|
||||||
if (answer_parity) *answer_parity = par[0];
|
if (answer_parity) *answer_parity = par[0];
|
||||||
|
|
||||||
if (crypted == CRYPT_ALL) {
|
if (pcs && (crypted == CRYPT_ALL)) {
|
||||||
if (len == 1) {
|
if (len == 1) {
|
||||||
uint16_t res = 0;
|
uint16_t res = 0;
|
||||||
res |= (crypto1_bit(pcs, 0, 0) ^ BIT(answer[0], 0)) << 0;
|
res |= (crypto1_bit(pcs, 0, 0) ^ BIT(answer[0], 0)) << 0;
|
||||||
|
|
Loading…
Reference in a new issue