[OpenSIPS-Devel] [OpenSIPS/opensips] e2b698: acc: Fix drop_accounting() (do not be a NOOP!)
Liviu Chircu
noreply at github.com
Fri Jan 6 16:51:01 UTC 2023
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: e2b698a7c6e71e1d272b8f7e330266427c86fe52
https://github.com/OpenSIPS/opensips/commit/e2b698a7c6e71e1d272b8f7e330266427c86fe52
Author: Liviu Chircu <liviu at opensips.org>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M modules/acc/acc_logic.c
M modules/acc/acc_logic.h
Log Message:
-----------
acc: Fix drop_accounting() (do not be a NOOP!)
The bug here was that `drop_accounting()` was building its bitmask as:
flag_mask = types * flags;
... whereas it should have done the same as in `do_accounting()`:
flag_mask = types + types * flags;
-------
^ the actual acc types to reset were missing!
(cherry picked from commit 211a63c9b2ccac346dfc57bca2ede71d286e9989)
More information about the Devel
mailing list