diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2009-08-20 20:29:32 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2009-08-20 20:29:32 +0000 |
commit | 53fd27c005f4872621b2e46d152b3a5e5299445d (patch) | |
tree | 2c4d322dfae2526887b143fc84149107afe1ae30 /main | |
parent | f6a10614a406f3c04c68162cfd40d36801fa1585 (diff) |
Fix a crash by checking the proper pointer for validity before deferencing it.
(closes issue #15751)
Reported by: atis
Patches:
ast_bridge_call_peer_cdr.patch uploaded by atis (license 242)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@213327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index 9f1455185..f8ab00498 100644 --- a/main/features.c +++ b/main/features.c @@ -2769,7 +2769,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast is before the bridge's start time, so I added in the tvcmp check to the if below */ - if (peer_cdr && !ast_tvzero(peer_cdr->answer) && ast_tvcmp(peer->cdr->answer, bridge_cdr->start) >= 0) { + if (peer_cdr && !ast_tvzero(peer_cdr->answer) && ast_tvcmp(peer_cdr->answer, bridge_cdr->start) >= 0) { bridge_cdr->answer = peer_cdr->answer; bridge_cdr->disposition = peer_cdr->disposition; if (chan_cdr) { |