Fix proposed in:
https://github.com/martinpaljak/OpenSC.tokend/issues/1