mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Fix regression in 2.1.2 (due to commit 2183683
)
* scd/apdu.c (pcsc_vendor_specific_init): Replace use of bufNN_to_uint by direct code. -- Hey, that was little endian.
This commit is contained in:
parent
070d7bf940
commit
07a71da479
1 changed files with 2 additions and 2 deletions
|
@ -1851,9 +1851,9 @@ pcsc_vendor_specific_init (int slot)
|
|||
if (l == 1)
|
||||
v = p[0];
|
||||
else if (l == 2)
|
||||
v = buf16_to_uint (p);
|
||||
v = (((unsigned int)p[1] << 8) | p[0]);
|
||||
else if (l == 4)
|
||||
v = buf32_to_uint (p);
|
||||
v = (((unsigned int)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]);
|
||||
|
||||
if (tag == PCSCv2_PART10_PROPERTY_bMinPINSize)
|
||||
reader_table[slot].pcsc.pinmin = v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue