Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acc: Fix prepared statements for the missed/acc tables
Commit 4bc134f 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 (cherry picked from commit 5b86833)
- Loading branch information