From: marshmellow42 Date: Fri, 16 Jun 2017 18:46:50 +0000 (-0400) Subject: Merge pull request #321 from Proxmark/iceman1001-patch-1 X-Git-Tag: v3.1.0~209 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0c29544f640b8e8c03005b10229526a2d57e5954?hp=e5a15888b6b0d8e9087082ece706e899ca60729d Merge pull request #321 from Proxmark/iceman1001-patch-1 BUG: 'hf mf mifare' --- diff --git a/client/mifarehost.c b/client/mifarehost.c index c6c6877e..6b5e3ba2 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -224,7 +224,7 @@ int mfDarkside(uint64_t *key) int mfCheckKeys (uint8_t blockNo, uint8_t keyType, bool clear_trace, uint8_t keycnt, uint8_t * keyBlock, uint64_t * key){ - *key = 0; + *key = -1; UsbCommand c = {CMD_MIFARE_CHKKEYS, {((blockNo & 0xff) | ((keyType&0xff)<<8)), clear_trace, keycnt}}; memcpy(c.d.asBytes, keyBlock, 6 * keycnt);