Skip to content

Commit ef31977

Browse files
committed
Update libddwaf-rust to 2.0.1
1 parent e01e01a commit ef31977

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

appsec/helper-rust/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appsec/helper-rust/src/client.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,17 @@ impl ReqContext {
709709
RunnableCtx::Owned(ctx) => ctx.run(data, timeout),
710710
}
711711
}
712+
713+
fn run_batches(
714+
&mut self,
715+
data: libddwaf::object::WafArray,
716+
timeout: Duration,
717+
) -> Result<libddwaf::RunResult, libddwaf::RunError> {
718+
match self {
719+
RunnableCtx::Borrowed(ctx) => ctx.run_batches(data, timeout),
720+
RunnableCtx::Owned(ctx) => ctx.run_batches(data, timeout),
721+
}
722+
}
712723
}
713724
match options.subctx_id.as_ref() {
714725
None => Ok(RunnableCtx::Borrowed(&mut self.waf_ctx)),

0 commit comments

Comments
 (0)