mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01: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
@ -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…
x
Reference in New Issue
Block a user