Skip to content

Commit

Permalink
cgrates: properly restore replication acc and dst
Browse files Browse the repository at this point in the history
Credits go to Barnaby Ritchley (from sipsynergy) for reporting it.

(cherry picked from commit 914f95a)
  • Loading branch information
razvancrainea committed Jan 26, 2022
1 parent c0edd56 commit e58aa51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/cgrates/cgrates_acc.c
Expand Up @@ -1194,7 +1194,9 @@ void cgr_loaded_callback(struct dlg_cell *dlg, int type,
s->acc_info->acc.s = (char *)s->acc_info + sizeof(struct cgr_acc_sess);
s->acc_info->dst.s = s->acc_info->acc.s + tmp1.len;
memcpy(s->acc_info->acc.s, tmp1.s, tmp1.len);
s->acc_info->acc.len = tmp1.len;
memcpy(s->acc_info->dst.s, tmp2.s, tmp2.len);
s->acc_info->dst.len = tmp2.len;
pkg_free(tmp1.s);
pkg_free(tmp2.s);
s->acc_info->start_time = start_time;
Expand Down

0 comments on commit e58aa51

Please sign in to comment.