Skip to content

Commit

Permalink
fix: correct error in best effort rate limiting (netsec-ethz#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcfrei authored Feb 26, 2024
1 parent e23ada2 commit 67df087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worker_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ lf_worker_check_best_effort_pkt(struct lf_worker_context *worker_context,
return LF_CHECK_BE;
#endif /* !LF_WORKER_OMIT_RATELIMIT_CHECK */

return res = lf_ratelimiter_worker_apply_best_effort(
&worker_context->ratelimiter, pkt_len, ns_now);
res = lf_ratelimiter_worker_apply_best_effort(&worker_context->ratelimiter,
pkt_len, ns_now);
if (likely(res > 0)) {
LF_WORKER_LOG_DP(DEBUG,
"Best-effort rate limit filter check failed (res=%d).\n", res);
Expand Down

0 comments on commit 67df087

Please sign in to comment.