diff options
author | TizenOpenSource <tizenopensrc@samsung.com> | 2023-12-08 12:23:05 +0900 |
---|---|---|
committer | TizenOpenSource <tizenopensrc@samsung.com> | 2023-12-08 12:23:05 +0900 |
commit | 1aac48dff40ef592968a18058bad270da65ed847 (patch) | |
tree | 3e9a2fb59b3a9559e2a8f2aa1ad194929708d1df /ext/repo_pubkey.c | |
parent | 2d757ccc60324e7bfcc07f6f46d7f38e30642fcb (diff) | |
download | libsolv-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.c | 6 |
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; |