]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/emvcmd.c
FIX: coverity scan found some bugs in EMV code. These are the fixes to:
[proxmark3-svn] / armsrc / emvcmd.c
index 845adee0f93595c4559098e8debcec5fdfb19b5d..fb24d0f43710bb53c5042e78e1325605779fc8a4 100644 (file)
@@ -171,7 +171,7 @@ int EMV_PaywaveTransaction()
         cardMode = VISA_FDDA;
     }
     else if((currentcard.tag_9F66[0] & 0x80) == 0x80) {
         cardMode = VISA_FDDA;
     }
     else if((currentcard.tag_9F66[0] & 0x80) == 0x80) {
-        if((currentcard.tag_9F66[1] & 0x80) == 1) { //CVN17
+        if((currentcard.tag_9F66[1] & 0x80) == 0x80) { //CVN17
             cardMode = VISA_CVN17;
         } else {
             cardMode = VISA_DCVV; 
             cardMode = VISA_CVN17;
         } else {
             cardMode = VISA_DCVV; 
Impressum, Datenschutz