mirror of
https://github.com/opnsense/src.git
synced 2026-05-13 09:44:52 -04:00
The packet_limit can fall to 0, leading to a divide by zero abort in
the "packets % packet_limit".
An possible solution would be to apply a lower limit of 1 after the
calculation of packet_limit, but since any number modulo 1 gives 0,
the more efficient solution is to skip the modulo operation for
packet_limit <= 1.
Reported by: Karl Denninger <karl@denninger.net>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| alias.c | ||
| alias.h | ||
| alias_db.c | ||
| alias_db.h | ||
| alias_dummy.c | ||
| alias_ftp.c | ||
| alias_irc.c | ||
| alias_local.h | ||
| alias_mod.c | ||
| alias_mod.h | ||
| alias_nbt.c | ||
| alias_pptp.c | ||
| alias_proxy.c | ||
| alias_sctp.c | ||
| alias_sctp.h | ||
| alias_skinny.c | ||
| alias_smedia.c | ||
| alias_util.c | ||
| HISTORY | ||
| libalias.3 | ||