summaryrefslogtreecommitdiff
path: root/cdr/cdr_syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdr/cdr_syslog.c')
-rw-r--r--cdr/cdr_syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_syslog.c b/cdr/cdr_syslog.c
index adf260594..e59381280 100644
--- a/cdr/cdr_syslog.c
+++ b/cdr/cdr_syslog.c
@@ -93,7 +93,7 @@ static int syslog_log(struct ast_cdr *cdr)
/* We need to dup here since the cdr actually belongs to the other channel,
so when we release this channel we don't want the CDR getting cleaned
up prematurely. */
- dummy->cdr = ast_cdr_dup(cdr);
+ ast_channel_cdr_set(dummy, ast_cdr_dup(cdr));
AST_RWLIST_RDLOCK(&sinks);