Align end of the loop with comment in previous line (exit when 90 00 or length completed).
This commit is contained in:
parent
200b09b89f
commit
e9f94d7818
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue