ignore NODATA response, otherwise we abort in a meaningless way. See

2004-02-27  Not Zed  <NotZed@Ximian.com>

        * 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
This commit is contained in:
Not Zed
2004-02-27 05:44:56 +00:00
committed by Michael Zucci
parent dd4b6354aa
commit 4a67162ad8

View File

@ -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) {