diff options
Diffstat (limited to 'g10/ccid-driver.c')
-rw-r--r-- | g10/ccid-driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/ccid-driver.c b/g10/ccid-driver.c index 8868a2cfc..099dae240 100644 --- a/g10/ccid-driver.c +++ b/g10/ccid-driver.c @@ -494,6 +494,9 @@ ccid_open_reader (ccid_driver_t *handle, int readerno) shallow copy of the list created internally by usb_init ? */ usb_free_match (match); + if (!rc && !*handle) + rc = -1; /* In case we didn't enter the while lool at all. */ + return rc; } |