commit | bbd40a0e316bb06e1320d71fa3be7e2f3d62c7a9 | [log] [tgz] |
---|---|---|
author | Daniel P. Berrangé <berrange@redhat.com> | Wed Oct 30 10:08:12 2024 +0000 |
committer | Daniel P. Berrangé <berrange@redhat.com> | Tue Nov 05 18:37:18 2024 +0000 |
tree | 796b53a3b76b002370924afbe8ad2faf1edbbd35 | |
parent | d078da86d61cf0f188cd099bef9b7b2dcfeba5a7 [diff] |
crypto: fix error check on gcry_md_open Gcrypt does not return negative values on error, it returns non-zero values. This caused QEMU not to detect failure to open an unsupported hash, resulting in a later crash trying to use a NULL context. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>