Commit d47a144a authored by Pål Hermunn Johansen's avatar Pål Hermunn Johansen

Add simple error checking in ESI processing

When the VEP state machine is in a bad state during finalization
(VEP_Finish), we log this as an ESI error.
parent f542cabb
......@@ -1052,6 +1052,14 @@ VEP_Finish(struct vep_state *vep)
if (vep->attr_vsb)
VSB_destroy(&vep->attr_vsb);
if (vep->state != VEP_START &&
vep->state != VEP_BOM &&
vep->state != VEP_TESTXML &&
vep->state != VEP_NOTXML &&
vep->state != VEP_NEXTTAG) {
vep_error(vep, "VEP ended inside a tag");
}
if (vep->o_pending)
vep_mark_common(vep, vep->ver_p, vep->last_mark);
if (vep->o_wait > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment