1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

resolve: add missing initialization of libgcrypt

Fixes #21951.
This commit is contained in:
Yu Watanabe 2022-01-05 11:33:26 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 85ed912479
commit e28df39269

View File

@ -1402,6 +1402,8 @@ int dnssec_verify_dnskey_by_ds(DnsResourceRecord *dnskey, DnsResourceRecord *ds,
if (md_algorithm < 0)
return -EOPNOTSUPP;
initialize_libgcrypt(false);
_cleanup_(gcry_md_closep) gcry_md_hd_t md = NULL;
size_t hash_size = gcry_md_get_algo_dlen(md_algorithm);