]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/bootrom.c
FIX: coverty scan reveals some resourceleaks and overruns, which is supposed to...
[proxmark3-svn] / bootrom / bootrom.c
index 7f4aa17811290496b314434b1e54b5bc082b6fb6..b522a1640365ad74adcbbd83cacfb646070494eb 100644 (file)
@@ -148,7 +148,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
         while(!((sr = AT91C_BASE_EFC0->EFC_FSR) & AT91C_MC_FRDY));
         if(sr & (AT91C_MC_LOCKE | AT91C_MC_PROGE)) {
           dont_ack = 1;
-          cmd_send(CMD_NACK,0,0,0,0,0);
+          cmd_send(CMD_NACK,sr,0,0,0,0);
         }
       }
     } break;
Impressum, Datenschutz