[evolution-data-server] Bug #580212 - Improving previous fix



commit e864d3b7e70b7badd2a703d5a0de42855a84816a
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 2 18:03:12 2009 +0200

    Bug #580212 - Improving previous fix
    
    Report error only when no data found or didn't found signature, otherwise
    let it return signature information like before.
---
 camel/camel-gpg-context.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index b564188..eb71125 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -1559,7 +1559,8 @@ gpg_verify (CamelCipherContext *context, CamelMimePart *ipart, CamelException *e
 			goto exception;
 	}
 
-	if (gpg_ctx_op_wait (gpg) != 0) {
+	/* report error only when no data or didn't found signature */
+	if (gpg_ctx_op_wait (gpg) != 0 && (gpg->nodata || !gpg->hadsig)) {
 		const gchar *diagnostics;
 
 		diagnostics = gpg_ctx_get_diagnostics (gpg);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]