diff --git a/libnfc/nfc.c b/libnfc/nfc.c index ebc891a..e41ee85 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -99,6 +99,7 @@ nfc_connect (nfc_device_desc_t * pndd) while ((ndr = *pndr)) { // Specific device is requested: using device description pndd if (0 != strcmp (ndr->name, pndd->pcDriver)) { + pndr++; continue; } else { pnd = ndr->connect (pndd);