aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-29 23:11:29 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-29 23:11:29 +0000
commit2b81f7865dc402dcf1ce503b20b5a2104711d366 (patch)
treed5134e1b89be1a9bcb0c23f2b399bdcb9c163b9c /channel.c
parentcfd3767e336b2595d8d9b92b8c4a46b94b9559bc (diff)
ensure CDR pointer is cleared after detaching it from channel (related to issue #4877)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6444 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index b0894e3a6..6fd536b7f 100755
--- a/channel.c
+++ b/channel.c
@@ -1011,6 +1011,7 @@ int ast_hangup(struct ast_channel *chan)
if (chan->cdr) { /* End the CDR if it hasn't already */
ast_cdr_end(chan->cdr);
ast_cdr_detach(chan->cdr); /* Post and Free the CDR */
+ chan->cdr = NULL;
}
if (ast_test_flag(chan, AST_FLAG_BLOCKING)) {
ast_log(LOG_WARNING, "Hard hangup called by thread %ld on %s, while fd "