aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/mainproc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index e2703516c..8108a07b7 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -1838,10 +1838,14 @@ do_proc_packets (CTX c, iobuf_t a, int keep_dek_and_list)
* packet and not to reuse the current one ... It works right
* when there is a compression packet between which adds just
* an extra layer.
+ *
+ * Note that we should not reset the any.data due to another
+ * packets. Just set it once on seeing a plaintext.
+ *
* Hmmm: Rewrite this whole module here??
*/
if (pkt->pkttype != PKT_SIGNATURE && pkt->pkttype != PKT_MDC)
- c->any.data = (pkt->pkttype == PKT_PLAINTEXT);
+ c->any.data |= (pkt->pkttype == PKT_PLAINTEXT);
if (newpkt == -1)
;