Skip to content

Commit 498e7f8

Browse files
committed
Fix #627
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 3f6af19 commit 498e7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pk/asn1/der/choice/der_decode_choice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int der_decode_choice(const unsigned char *in, unsigned long *inlen,
6565

6666
case LTC_ASN1_SHORT_INTEGER:
6767
if (der_decode_short_integer(in, *inlen, data) == CRYPT_OK) {
68-
if (der_length_short_integer(size, &z) == CRYPT_OK) {
68+
if (der_length_short_integer(*(unsigned long*)data, &z) == CRYPT_OK) {
6969
list[x].used = 1;
7070
*inlen = z;
7171
return CRYPT_OK;

0 commit comments

Comments
 (0)