summaryrefslogtreecommitdiff
path: root/src/iso7816.c
diff options
context:
space:
mode:
authornicoo <nicoo@debian.org>2020-02-23 15:31:23 +0100
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>2020-02-23 15:34:39 +0100
commit399de849155d9d77d1a5b325afa4b75550c55fb4 (patch)
tree7a04c6a11d4a92e12e0dfa5c3d6471ebd74af4dd /src/iso7816.c
parent28215e6c161c70cb1bcae7d01195fefcffb09d32 (diff)
parentc923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (diff)
Update upstream source from tag 'upstream/1.3.1'
Update to upstream version '1.3.1' with Debian dir 96d0ec6cfbe8efa2e15111ccc5e79c78bd725385
Diffstat (limited to 'src/iso7816.c')
-rw-r--r--src/iso7816.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iso7816.c b/src/iso7816.c
index e2ea281..a3fd280 100644
--- a/src/iso7816.c
+++ b/src/iso7816.c
@@ -13,7 +13,7 @@ iso7816_new(uint8_t ins, uint8_t p1, uint16_t payload_len)
13 iso7816_apdu_t *apdu; 13 iso7816_apdu_t *apdu;
14 size_t alloc_len; 14 size_t alloc_len;
15 15
16 alloc_len = sizeof(iso7816_apdu_t) + payload_len; 16 alloc_len = sizeof(iso7816_apdu_t) + payload_len + 2; /* le1 le2 */
17 17
18 if ((apdu = calloc(1, alloc_len)) == NULL) 18 if ((apdu = calloc(1, alloc_len)) == NULL)
19 return (NULL); 19 return (NULL);