diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-19 22:30:54 +0200 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2024-04-20 11:41:04 +0800 |
commit | 0af8a6fcdbe8550bababd51c4da1772c75f77912 (patch) | |
tree | 2ad2d60a7304163f6fcda35f5de2a908f4afdcd2 | |
parent | 0d75d71a6f1b6a8a24ccb7fe4e6a9889b4ff8b0b (diff) |
crypt-gpgme.c: Fix NULL dereferencestable
Fixes: 1afaa74a19ee ("gpgme integration. See documentation for $crypt_use_gpgme, and http://www.gnupg.org/aegypten2/.")
-rw-r--r-- | crypt-gpgme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt-gpgme.c b/crypt-gpgme.c index fdf44af4..5313d6f2 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -2013,7 +2013,7 @@ restart: gpgme_decrypt_result_t result; result = gpgme_op_decrypt_result (ctx); - if (!result->unsupported_algorithm) + if (result && !result->unsupported_algorithm) { maybe_signed = 1; gpgme_data_release (plaintext); |