]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
FIX: coverity scan found some bugs in EMV code. These are the fixes to:
[proxmark3-svn] / client / proxmark3.c
index b374b2943f01cdf8fa7e63b32bea2dcecc3358c4..b49b4d0511da8a4572f8281b3d0890c964ae4444 100644 (file)
@@ -98,7 +98,8 @@ static void *uart_receiver(void *targ) {
                prx = rx;
 
                if (txcmd_pending) {
                prx = rx;
 
                if (txcmd_pending) {
-                       if ( !uart_send(sp, (byte_t*) &txcmd, sizeof(UsbCommand))) {
+                       bool res = uart_send(sp, (byte_t*) &txcmd, sizeof(UsbCommand));
+                       if (!res) {
                                PrintAndLog("Sending bytes to proxmark failed");
                        }
                        txcmd_pending = false;
                                PrintAndLog("Sending bytes to proxmark failed");
                        }
                        txcmd_pending = false;
Impressum, Datenschutz