diff options
| author | Werner Koch <[email protected]> | 2005-05-20 20:37:08 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2005-05-20 20:37:08 +0000 |
| commit | bd644c8d45ff2903625edb8b41bffcb6a8a69b85 (patch) | |
| tree | d9a7fedf142c24fb6b48f719d70a90bb3b192cd4 /g10/ccid-driver.c | |
| parent | * gpg.sgml: Document --default-sig-expire and --default-cert-expire, (diff) | |
| download | gnupg-bd644c8d45ff2903625edb8b41bffcb6a8a69b85.tar.gz gnupg-bd644c8d45ff2903625edb8b41bffcb6a8a69b85.zip | |
(ccid_transceive): Arghhh. The seqno is another
bit in the R-block than in the I block, this was wrong at one
place. Fixes bug #419 and hopefully several others.
Diffstat (limited to 'g10/ccid-driver.c')
| -rw-r--r-- | g10/ccid-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/ccid-driver.c b/g10/ccid-driver.c index b817452b1..8ed9c27c5 100644 --- a/g10/ccid-driver.c +++ b/g10/ccid-driver.c @@ -1814,7 +1814,7 @@ ccid_transceive (ccid_driver_t handle, msg = send_buffer; tpdulen = last_tpdulen; } - else if (sending && !!(tpdu[1] & 0x40) == handle->t1_ns) + else if (sending && !!(tpdu[1] & 0x10) == handle->t1_ns) { /* Reponse does not match our sequence number. */ DEBUGOUT ("R-block with wrong seqno received on more bit\n"); return CCID_DRIVER_ERR_CARD_IO_ERROR; |
