mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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();",
|
||||
env_->LValue(flow_buffer_id));
|
||||
}
|
||||
out_cc->println("throw e;");
|
||||
out_cc->println("throw;");
|
||||
out_cc->println("}");
|
||||
out_cc->dec_indent();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue