mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-03 14:21:47 +00:00
Fix nfc_pick_device() when called from nfc_connect with NULL nfc_device_desc_t parameter (Fixes Issue 156)
This commit is contained in:
@@ -191,9 +191,8 @@ nfc_pick_device (void)
|
||||
size_t szN;
|
||||
|
||||
if (!ndr->probe (pndd, 1, &szN)) {
|
||||
DBG ("%s probe failed", ndr->name);
|
||||
free (pndd);
|
||||
return NULL;
|
||||
ERR ("%s probe failed", ndr->name);
|
||||
szN = 0;
|
||||
}
|
||||
|
||||
if (szN == 0) {
|
||||
|
||||
Reference in New Issue
Block a user