From 4a67162ad86d2b53c116f93b9e7231cbffb730bb Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 27 Feb 2004 05:44:56 +0000 Subject: ignore NODATA response, otherwise we abort in a meaningless way. See 2004-02-27 Not Zed * camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA response, otherwise we abort in a meaningless way. See #52939. svn path=/trunk/; revision=24904 --- camel/camel-gpg-context.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'camel/camel-gpg-context.c') diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c index 306211ab99..9f55fc4b65 100644 --- a/camel/camel-gpg-context.c +++ b/camel/camel-gpg-context.c @@ -55,7 +55,7 @@ #include "camel-multipart-signed.h" #include "camel-multipart-encrypted.h" -#define d(x) +#define d(x) static CamelCipherContextClass *parent_class = NULL; @@ -805,15 +805,7 @@ gpg_ctx_parse_status (struct _GpgCtx *gpg, CamelException *ex) return -1; } else if (!strncmp (status, "NODATA", 6)) { /* this is an error */ - const char *diagnostics; - - diagnostics = gpg_ctx_get_diagnostics (gpg); - if (diagnostics && *diagnostics) - camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, diagnostics); - else - camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, - _("No data provided")); - return -1; + /* But we ignore it anyway, we should get other response codes to say why */ } else { /* check to see if we are complete */ switch (gpg->mode) { -- cgit