From: Jonathan McDowell Date: Fri, 15 Sep 2023 18:27:49 +0000 (+0530) Subject: Fix decoding of signature creation time X-Git-Tag: onak-0.6.3~7 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=b04b23d85b841b12d848ac70f527e8e114f7cb29;p=onak.git Fix decoding of signature creation time --- diff --git a/decodekey.c b/decodekey.c index f8cc407..6e15bad 100644 --- a/decodekey.c +++ b/decodekey.c @@ -94,11 +94,11 @@ onak_status_t parse_subpackets(unsigned char *data, size_t len, if (creation != NULL) { *creation = data[offset + packetlen - 4]; *creation <<= 8; - *creation = data[offset + packetlen - 3]; + *creation += data[offset + packetlen - 3]; *creation <<= 8; - *creation = data[offset + packetlen - 2]; + *creation += data[offset + packetlen - 2]; *creation <<= 8; - *creation = data[offset + packetlen - 1]; + *creation += data[offset + packetlen - 1]; } break; /*