Closed wincss closed 8 years ago
If you make a patch, I'll include it. Otherwise, you have to wait until I get around doing this.
@fuzxxl OK, I'll submit a pull request later.
Should I fix it just in lastest version(2.0), or in all versions?
Just fix 2.0 and dev. The other paths aren't maintained. Don't forget to update CHANGES as well and enter yourself as an author into the file you update together with an updated copyright year.
Problem
When InfiniteSelect == false, nfc_initiator_select_passive_target return 0 when no tag was found, but Device.InitiatorSelectPassiveTarget always calls unmarshallTarget.
Example in https://github.com/nfc-tools/libnfc/blob/master/utils/nfc-mfclassic.c
This code use <= 0 for error checking.
How to reproduce
Affected version
all version include latest