bugfix: Le must be <= buffer size

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2939 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2006-05-05 10:06:38 +00:00
parent d78f5ad5c2
commit 9b52eebdda
1 changed files with 2 additions and 2 deletions

View File

@ -614,8 +614,8 @@ pgp_compute_signature(sc_card_t *card, const u8 *data,
apdu.lc = data_len;
apdu.data = data;
apdu.datalen = data_len;
apdu.le = 256;
apdu.resp = out;
apdu.le = outlen;
apdu.resp = out;
apdu.resplen = outlen;
r = sc_transmit_apdu(card, &apdu);