diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/asn1/ber_dec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asn1/ber_dec.cpp b/src/asn1/ber_dec.cpp index 4d800d471..164226e69 100644 --- a/src/asn1/ber_dec.cpp +++ b/src/asn1/ber_dec.cpp @@ -421,7 +421,8 @@ u64bit BER_Decoder::decode_constrained_integer(ASN1_Tag type_tag, u64bit out = 0; for(size_t i = 0; i != 8; ++i) - out = (out << 8) | integer.byte_at(8-i); + out = (out << 8) | integer.byte_at(7-i); + return out; } |