[asterisk-commits] russell: branch 1.4 r276126 - /branches/1.4/res/res_features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 13 14:14:57 CDT 2010


Author: russell
Date: Tue Jul 13 14:14:54 2010
New Revision: 276126

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276126
Log:
Only reset a CDR that exists.

Modified:
    branches/1.4/res/res_features.c

Modified: branches/1.4/res/res_features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/res/res_features.c?view=diff&rev=276126&r1=276125&r2=276126
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Tue Jul 13 14:14:54 2010
@@ -2193,7 +2193,9 @@
 				ast_channel_unlock(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  */
 		}




More information about the asterisk-commits mailing list