index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2020-05-20 14:17:11 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-06-01 10:59:08 +1000 |
commit | 5f6ef895b1dac04c7fb1b63acab2d42c19f91922 (patch) | |
tree | 8396813a300f02df7f41a66c0b88d523dac6dc40 | |
parent | 23b50d60e34e324cf6f420c05293f7fa8a909623 (diff) |
-rw-r--r-- | lib/libalpm/signing.c | 2 |
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index c8eaaca2..2cbbd103 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -1058,7 +1058,7 @@ static int parse_subpacket(alpm_handle_t *handle, const char *identifier, if(length_check(len, spos, 2, handle, identifier) != 0){ return -1; } - slen = (sig[spos] << 8) | sig[spos + 1]; + slen = ((sig[spos] - 192) << 8) + sig[spos + 1] + 192; spos = spos + 2; } else { if(length_check(len, spos, 5, handle, identifier) != 0) { |