summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Dabalsa <arieldabalsa@gmail.com>2017-05-05 11:07:29 -0400
committerAriel Dabalsa <arieldabalsa@gmail.com>2017-05-05 19:24:57 -0400
commit6b8196e7384cf397c97825ca9c4af7fbda5ce26f (patch)
treebfd615a74af01f64c8141033a11198c679b8a025
parentf4605c6e3849355d64751f1d606a6cc253d56579 (diff)
Fix infinite loop on mismatched BEGIN/END tags
-rw-r--r--src/vobject/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs
index bb3c91d..542e315 100644
--- a/src/vobject/lib.rs
+++ b/src/vobject/lib.rs
@@ -385,7 +385,6 @@ impl<'s> Parser<'s> {
component.subcomponents.push(try!(self.consume_component()));
} else if property.name == "END" {
if property.raw_value != c_name {
- self.pos = begin_pos;
return Err(ParseError::new(format!(
"Mismatched tags: BEGIN:{} vs END:{}",
c_name, property.raw_value