Skip to content

Commit

Permalink
Fix #627
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Jaeckel <[email protected]>
  • Loading branch information
sjaeckel committed Aug 7, 2023
1 parent 03a705b commit 94be6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pk/asn1/der/choice/der_decode_choice.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int der_decode_choice(const unsigned char *in, unsigned long *inlen,

case LTC_ASN1_SHORT_INTEGER:
if (der_decode_short_integer(in, *inlen, data) == CRYPT_OK) {
if (der_length_short_integer(size, &z) == CRYPT_OK) {
if (der_length_short_integer(*(unsigned long*)data, &z) == CRYPT_OK) {
list[x].used = 1;
*inlen = z;
return CRYPT_OK;
Expand Down

0 comments on commit 94be6b1

Please sign in to comment.