From e79c7cbc001bccf6742876c1bc3a728a799dffbc Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 9 Jun 2004 12:39:54 +0000 Subject: oops, we already did a NODATA check. just save the state there rather than creating a new NODATA check :-) svn path=/trunk/; revision=26267 --- camel/camel-gpg-context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c index 43e34ac408..9c367a6e24 100644 --- a/camel/camel-gpg-context.c +++ b/camel/camel-gpg-context.c @@ -818,6 +818,7 @@ gpg_ctx_parse_status (struct _GpgCtx *gpg, CamelException *ex) } else if (!strncmp (status, "NODATA", 6)) { /* this is an error */ /* But we ignore it anyway, we should get other response codes to say why */ + gpg->nodata = TRUE; } else { /* check to see if we are complete */ switch (gpg->mode) { @@ -854,8 +855,6 @@ gpg_ctx_parse_status (struct _GpgCtx *gpg, CamelException *ex) gpg->hadsig = TRUE; } else if (!strncmp (status, "NO_PUBKEY ", 10)) { gpg->nopubkey = TRUE; - } else if (!strncmp (status, "NODATA", 6)) { - gpg->nodata = TRUE; } break; case GPG_CTX_MODE_ENCRYPT: -- cgit v1.2.3