@miconda commented on this pull request.
@@ -61,9 +60,9 @@ extern struct acc_extra *db_extra;
/* arrays used to collect the values before being
* pushed to the storage backend (whatever used)
* (3 = datetime + max 2 from time_mode) */
-static str val_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG+3];
-static int int_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG+3];
-static char type_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG+3];
+str *val_arr;
+int *int_arr;
+char *type_arr;
These pointers must be initialized to `NULL` so mod_destroy() does not end up crashing if
mod_init() is not executed.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2891#pullrequestreview-790505646