diff options
author | Phil Sutter <phil@nwl.cc> | 2018-04-24 11:46:01 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 12:06:22 +0200 |
commit | 3261e9cf14a8a80b9f524009502edf1ccd8da5eb (patch) | |
tree | 1271b84511a4afd422087bfcb04d208daacd1f51 /include/payload.h | |
parent | 87650476c4a2da66e8641e04566655b85f63bb43 (diff) |
statement: Fix get_rate() for zero byte_rate
The algorithm didn't detect whether given byte_rate was zero,
pointlessly iterating through data units. Make it exit early in this
case.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/payload.h')
0 files changed, 0 insertions, 0 deletions