aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-13 07:40:57 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-13 07:40:57 +0000
commit55fd6ef0e8a5c52a3d7491a011da4c1d96d5bcf6 (patch)
tree082dfc2f625c7a5bfdc9e2dd606bd64b3b44cd8a
parent714d6a4d8f8c94e4fbd70fc7f1037c04cea0074a (diff)
properly reset the 'next' pointer when duplicating the cdr (issue #5921)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.0@7467 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_forkcdr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_forkcdr.c b/apps/app_forkcdr.c
index 460aba0b7..449e134d6 100644
--- a/apps/app_forkcdr.c
+++ b/apps/app_forkcdr.c
@@ -37,6 +37,7 @@ LOCAL_USER_DECL;
static void ast_cdr_clone(struct ast_cdr *cdr) {
struct ast_cdr *newcdr = ast_cdr_alloc();
memcpy(newcdr,cdr,sizeof(struct ast_cdr));
+ newcdr->next = NULL;
ast_cdr_append(cdr,newcdr);
gettimeofday(&newcdr->start, NULL);
memset(&newcdr->answer, 0, sizeof(newcdr->answer));