summaryrefslogtreecommitdiff
path: root/ext/repo_pubkey.c
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2023-12-08 12:23:05 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2023-12-08 12:23:05 +0900
commit1aac48dff40ef592968a18058bad270da65ed847 (patch)
tree3e9a2fb59b3a9559e2a8f2aa1ad194929708d1df /ext/repo_pubkey.c
parent2d757ccc60324e7bfcc07f6f46d7f38e30642fcb (diff)
downloadlibsolv-upstream.tar.gz
libsolv-upstream.tar.bz2
libsolv-upstream.zip
Imported Upstream version 0.7.27upstream/0.7.27upstream
Diffstat (limited to 'ext/repo_pubkey.c')
-rw-r--r--ext/repo_pubkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/repo_pubkey.c b/ext/repo_pubkey.c
index a965a65..fdcb9ea 100644
--- a/ext/repo_pubkey.c
+++ b/ext/repo_pubkey.c
@@ -458,11 +458,11 @@ pgpsig_init(struct pgpsig *sig, unsigned char *p, int l)
sig->haveissuer = 1;
memcpy(sig->issuer, q + 1, 8);
}
- if (x == 2 && j == 0)
+ if (x == 2 && sl == 5 && j == 0)
sig->created = q[1] << 24 | q[2] << 16 | q[3] << 8 | q[4];
- if (x == 3 && j == 0)
+ if (x == 3 && sl == 5 && j == 0)
sig->expires = q[1] << 24 | q[2] << 16 | q[3] << 8 | q[4];
- if (x == 9 && j == 0)
+ if (x == 9 && sl == 5 && j == 0)
sig->keyexpires = q[1] << 24 | q[2] << 16 | q[3] << 8 | q[4];
q += sl;
ql -= sl;