From 76211e9072e6008a1ae4a750ea42454d27e11549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 4 Mar 2014 12:11:51 +0000 Subject: [PATCH] bug in initialization from transport state; refs #28 --- src/cardos.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cardos.hxx b/src/cardos.hxx index 58e27ce..560d022 100644 --- a/src/cardos.hxx +++ b/src/cardos.hxx @@ -1091,8 +1091,8 @@ namespace cardos { CRYPTOLOG("log"); pcsc::Connection::Reader::Transaction lock(_reader); if (transportState()) { - if (sigGPinRetries()!=-1) changeSigGPin(newPin, oldPin); - if (pkcs15PinRetries()!=-1) changePkcs15Pin(newPin, oldPin); + changeSigGPin(newPin, oldPin); + changePkcs15Pin(newPin, oldPin); } else { if (pkcs15PinRetries()!=-1) changePkcs15Pin(newPin, oldPin); try {