25 lines
821 B
Diff
25 lines
821 B
Diff
From 0af8a6fcdbe8550bababd51c4da1772c75f77912 Mon Sep 17 00:00:00 2001
|
|
From: Alejandro Colomar <alx@kernel.org>
|
|
Date: Fri, 19 Apr 2024 22:30:54 +0200
|
|
Subject: [PATCH] crypt-gpgme.c: Fix NULL dereference
|
|
|
|
Fixes: 1afaa74a19ee ("gpgme integration. See documentation for $crypt_use_gpgme, and http://www.gnupg.org/aegypten2/.")
|
|
---
|
|
crypt-gpgme.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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);
|
|
--
|
|
GitLab
|