Align end of the loop with comment in previous line (exit when 90 00 or length completed).

This commit is contained in:
German Blanco 2015-12-15 10:43:48 +01:00
parent 200b09b89f
commit e9f94d7818
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ sc_get_response(struct sc_card *card, struct sc_apdu *apdu, size_t olen)
/* if the card has returned 0x9000 but we still expect data ask for more
* until we have read enough bytes */
le = minlen;
} while (rv != 0 || minlen != 0);
} while (rv != 0 && minlen != 0);
/* we've read all data, let's return 0x9000 */
apdu->resplen = buf - apdu->resp;