[OpenSIPS-Devel] [OpenSIPS/opensips] 211a63: acc: Fix drop_accounting() (do not be a NOOP!)

Liviu Chircu noreply at github.com
Fri Jan 6 16:49:53 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 211a63c9b2ccac346dfc57bca2ede71d286e9989
      https://github.com/OpenSIPS/opensips/commit/211a63c9b2ccac346dfc57bca2ede71d286e9989
  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!





More information about the Devel mailing list