coverity fix: 279923, flawed logic. how to signal to device to use the default keys?
This commit is contained in:
1 parent
fa98a10b38
commit
ae14272117
1 file changed
+2
-1
@@ -270,7 +270,8 @@ void MifareDES_Auth1(uint8_t *datain) {
|
||||
LED_B_OFF();
|
||||
LED_C_OFF();
|
||||
|
||||
if (payload->key == NULL) {
|
||||
|
||||
if (payload->keylen == 0) {
|
||||
if (payload->algo == MFDES_AUTH_DES) {
|
||||
memcpy(keybytes, PICC_MASTER_KEY8, 8);
|
||||
} else if (payload->algo == MFDES_ALGO_AES || payload->algo == MFDES_ALGO_3DES) {
|
||||
|
||||
Reference in new issue
Block a user