diff options
author | Russell Bryant <russell@russellbryant.com> | 2009-08-19 15:32:18 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2009-08-19 15:32:18 +0000 |
commit | 8fa685ece2b6821e08a56a4bb02ce686722a3fb9 (patch) | |
tree | 97bf3369ebcac71970215da8dd4f5ade69a1a5d4 /main | |
parent | 39c9838d7798f55f4489d14e031e79b0a7f6d8ba (diff) |
Don't blow up on a NULL cdr.
Reported in #asterisk-dev.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@213046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index becb6eae7..9f1455185 100644 --- a/main/features.c +++ b/main/features.c @@ -3120,7 +3120,9 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast chan_ptr = ast_channel_unref(chan_ptr); } /* new channel */ - ast_cdr_specialized_reset(new_peer_cdr, 0); + if (new_peer_cdr) { + ast_cdr_specialized_reset(new_peer_cdr, 0); + } } else { ast_cdr_specialized_reset(peer_cdr, 0); /* nothing changed, reset the peer_cdr */ } |