mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 11:03:48 +00:00
Fix returned value ((res=f()<0)) => ((res=f())<0); this solves a bug in nfc-relay-picc
This commit is contained in:
@@ -425,7 +425,7 @@ main(int argc, char *argv[])
|
||||
|
||||
if (!target_only_mode) {
|
||||
// Forward the frame to the original tag
|
||||
if ((res = nfc_initiator_transceive_bytes(pndInitiator, abtCapdu, szCapduLen, abtRapdu, sizeof(abtRapdu), -1) < 0)) {
|
||||
if ((res = nfc_initiator_transceive_bytes(pndInitiator, abtCapdu, szCapduLen, abtRapdu, sizeof(abtRapdu), -1)) < 0) {
|
||||
ret = false;
|
||||
} else {
|
||||
szRapduLen = (size_t) res;
|
||||
|
||||
Reference in New Issue
Block a user