]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
properly reset the 'next' pointer when duplicating the cdr (issue #5921)
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 Dec 2005 07:40:57 +0000 (07:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 Dec 2005 07:40:57 +0000 (07:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.0@7467 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_forkcdr.c

index 460aba0b72aa5fa78819495b8bd936479d2fc36a..449e134d6c4650e6519b2e68a7ab70cf956866c7 100644 (file)
@@ -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));