[asterisk-commits] mnicholson: trunk r213327 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 20 15:29:38 CDT 2009


Author: mnicholson
Date: Thu Aug 20 15:29:32 2009
New Revision: 213327

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213327
Log:
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)

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/features.c?view=diff&rev=213327&r1=213326&r2=213327
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Thu Aug 20 15:29:32 2009
@@ -2769,7 +2769,7 @@
 		   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) {




More information about the asterisk-commits mailing list