[OpenSIPS-Devel] [OpenSIPS/opensips] 354c41: acc: Fix drop_accounting() (do not be a NOOP!)
Liviu Chircu
noreply at github.com
Fri Jan 6 16:51:03 UTC 2023
Branch: refs/heads/3.3
Home: https://github.com/OpenSIPS/opensips
Commit: 354c41b9a1d722336120d7c1651820b395ba8b8e
https://github.com/OpenSIPS/opensips/commit/354c41b9a1d722336120d7c1651820b395ba8b8e
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