mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Fix an exception slicing issue in binpac generated cleanup code.
Switch to using a no-argument throw to preserve the dynamic type of the binpac exception. Otherwise, the exception is "sliced" and can only be subsequently handled as binpac::Exception and not a derived type.
This commit is contained in:
parent
14e3d5a1a3
commit
ce2b56751b
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ void FlowDecl::GenProcessFunc(Output *out_h, Output *out_cc)
|
||||||
out_cc->println("%s->DiscardData();",
|
out_cc->println("%s->DiscardData();",
|
||||||
env_->LValue(flow_buffer_id));
|
env_->LValue(flow_buffer_id));
|
||||||
}
|
}
|
||||||
out_cc->println("throw e;");
|
out_cc->println("throw;");
|
||||||
out_cc->println("}");
|
out_cc->println("}");
|
||||||
out_cc->dec_indent();
|
out_cc->dec_indent();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue