[OpenSIPS-Devel] [OpenSIPS/opensips] 9419b3: [call_center] fix overflowing the per-agent array ...
Bogdan Andrei IANCU
noreply at github.com
Thu May 4 10:30:01 UTC 2023
Branch: refs/heads/3.3
Home: https://github.com/OpenSIPS/opensips
Commit: 9419b3c5a9dd3b3323838173969d83fb805f68f2
https://github.com/OpenSIPS/opensips/commit/9419b3c5a9dd3b3323838173969d83fb805f68f2
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2023-05-04 (Thu, 04 May 2023)
Changed paths:
M modules/call_center/call_center.c
M modules/call_center/cc_data.c
M modules/call_center/cc_data.h
Log Message:
-----------
[call_center] fix overflowing the per-agent array of skills
As the array of skills is pre-allocated inside the agent struct, be sure you do not overflow it when populating the agent's skills (from DB).
Also, the logstate/logged_in value for an agent is read from DB or MI and it must be forced to 0/1 values, as it is later used as index. Yet another overflow fixed here.
(cherry picked from commit 6617ecc805520961642c16ac1e6c5a49787af2ab)
More information about the Devel
mailing list