typo in ctapi.c for libchipcard_ctapi

Thomas Viehmann <[email protected]>
Newsgroups gmane.comp.lib.libchipcard.devel
Message-ID <[email protected]>
Hallo,

mit jedem Teil von libchipcard2, den ich angucke, wächst mein Respekt
vor Eurer Leistung, die ganzen Spezifikationen umzusetzen...
Ich glaube in libchipcard_ctapi hat sich ein kleiner, aber gemeiner
Fehler eingeschlichen, den beigefügter bescheidener Patch zu beheben sucht.

Viele Grüße

Thomas

P.S.: Kleine Suchmaschinenhilfe: OpenPGP Card gnupg works better with
libchipcard_ctapi >= 2.1.5 (approximately) try an upgrade if you get

gpg: ct_activate_card: can't get status of reader 0: ct error
gpg: apdu_send_simple(0) failed: card I/O error
Please insert the card and hit return or enter 'c' to cancel: c
gpg: selecting openpgp failed: general error

gpg: public key decryption failed: general error
gpg: decryption failed: secret key not available
libchipcard-ctapi.diff (text/x-patch, 277 B)
--- libchipcard2-2.1.4.orig/src/fake_ctapi/ctapi.c
+++ libchipcard2-2.1.4/src/fake_ctapi/ctapi.c
@@ -663,7 +663,7 @@
     *lenr=2;
     return CT_API_RV_OK;
   }
-  else if (res==LC_Client_ResultOk) {
+  else if (res!=LC_Client_ResultOk) {
     return CT_API_RV_ERR_CT;
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.