summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-25 12:31:10 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-25 12:31:10 +0100
commitbeb69fe02cd04b3bd5ebe5746ca74642c4c7d2f4 (patch)
treea4790c0b9ee3d8895f2bb6a489024cc249bd91bf
parent1818a69afd8ace240251bf0504c208d9124c5e0e (diff)
openpgp: Drop XXX.
- We don't have to reset the `content_was_read` flag here: In PacketParser::next() we either return an error, EOF or a new PacketParser, which will have the flag cleared anyway. - Fixes #410.
-rw-r--r--openpgp/src/parse/parse.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index 5050b948..88741a0a 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -3469,7 +3469,6 @@ impl <'a> PacketParser<'a> {
} else {
self.state = state_;
self.finish()?;
- // XXX self.set_content_was_read(false);
let (fake_eof_, reader_) = buffered_reader_stack_pop(
reader_, recursion_depth - 1)?;
fake_eof = fake_eof_;