[OpenSIPS-Devel] [OpenSIPS/opensips] 5b8683: acc: Fix prepared statements for the missed/acc ta...
Liviu Chircu
noreply at github.com
Wed Nov 4 09:58:35 EST 2020
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 5b868337e60f0e9d503d6233409412abd27d2818
https://github.com/OpenSIPS/opensips/commit/5b868337e60f0e9d503d6233409412abd27d2818
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M modules/acc/acc.c
Log Message:
-----------
acc: Fix prepared statements for the missed/acc tables
Commit 4bc134fe3b introduced a regression where the reused PS for the
"missed_calls" table (9 fields) would no longer match the PS for the
"acc" table (11 fields). By reusing the former PS array, which is
shorter than required, the code would segfault. Example scenario:
* simple call from A -> B with:
* do_accounting("db", "missed|failed")
* call failure (e.g. 408 Request Timeout)
* code crashes as soon as the "failed" acc entry is written
Many thanks to Nexphone for sponsoring this fix
More information about the Devel
mailing list