From b04b23d85b841b12d848ac70f527e8e114f7cb29 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Fri, 15 Sep 2023 23:57:49 +0530 Subject: [PATCH] Fix decoding of signature creation time --- decodekey.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; /* -- 2.39.5