[balsa/gtk3] Check for empty return from GpgME
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Check for empty return from GpgME
- Date: Thu, 9 Feb 2012 03:16:40 +0000 (UTC)
commit 971d850aebe4ff76948d65ffd7fce7aebb5ef6c8
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Feb 8 22:15:52 2012 -0500
Check for empty return from GpgME
* libbalsa/gmime-part-rfc2440.c (g_mime_part_rfc2440_verify):
check for empty return from GpgME.
ChangeLog | 5 +++++
libbalsa/gmime-part-rfc2440.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a2d0108..3ff28e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-08 Albrecht DreÃ
+
+ * libbalsa/gmime-part-rfc2440.c (g_mime_part_rfc2440_verify):
+ check for empty return from GpgME.
+
2012-02-03 Peter Bloomfield
* configure.in: remove obsolete BUILD_WITH_GNOME.
diff --git a/libbalsa/gmime-part-rfc2440.c b/libbalsa/gmime-part-rfc2440.c
index 4c032c6..e5b927a 100644
--- a/libbalsa/gmime-part-rfc2440.c
+++ b/libbalsa/gmime-part-rfc2440.c
@@ -259,7 +259,7 @@ g_mime_part_rfc2440_verify(GMimePart * part, GError ** err)
TRUE, err);
/* upon success, replace the signed content by the checked one */
- if (result) {
+ if (result && g_mime_stream_length(plainstream) > 0) {
GMimeDataWrapper *wrapper = g_mime_data_wrapper_new();
g_mime_data_wrapper_set_stream(wrapper, plainstream);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]