libalpm: fix segfault when -Qip'ing a package
The dummy checksigs function never sets count to 0, leaving it unitialized. This caused the siglist cleanup to try and free the empty list. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
27ccd68976
commit
54b6d689e5
1 changed files with 2 additions and 1 deletions
|
@ -800,8 +800,9 @@ int _alpm_key_import(alpm_handle_t UNUSED *handle, const char UNUSED *uid,
|
||||||
}
|
}
|
||||||
|
|
||||||
int _alpm_gpgme_checksig(alpm_handle_t UNUSED *handle, const char UNUSED *path,
|
int _alpm_gpgme_checksig(alpm_handle_t UNUSED *handle, const char UNUSED *path,
|
||||||
const char UNUSED *base64_sig, alpm_siglist_t UNUSED *siglist)
|
const char UNUSED *base64_sig, alpm_siglist_t *siglist)
|
||||||
{
|
{
|
||||||
|
siglist->count = 0;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_LIBGPGME */
|
#endif /* HAVE_LIBGPGME */
|
||||||
|
|
Loading…
Add table
Reference in a new issue