OpenSC/OpenSC — pull request #189 by ttaylor249 (2013-09-25 21:06:36+00:00)
Title: Reset return code to success if pubkey read from cert.

In CardGetContainerInfo(), the return value is set to SCARD_E_FILE_NOT_FOUND if unable to read the public key from the token. It then tries to read the public key from the certificate. However, even if this succeeds, the function returns with a failure code because the return value is not reset to SCARD_S_SUCCESS.

This patch fixes the problem.