Skip to content

Commit

Permalink
westcos card small fix
Browse files Browse the repository at this point in the history
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4105 c6295689-39f2-0310-b995-f0e70906c6a9
  • Loading branch information
flc committed Mar 11, 2010
1 parent af1bf44 commit c3de15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libopensc/card-westcos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ static int westcos_sign_decipher(int mode, sc_card_t *card,
apdu.datalen = data_len;
apdu.data = data;
apdu.lc = data_len;
apdu.le = outlen;
apdu.le = outlen > 240 ? 240 : outlen;
apdu.resp = out;
apdu.resplen = outlen;

Expand All @@ -1143,7 +1143,7 @@ static int westcos_sign_decipher(int mode, sc_card_t *card,
goto out2;

/* correct */
r = outlen;
r = apdu.resplen;
goto out2;
}

Expand Down

0 comments on commit c3de15d

Please sign in to comment.