[svn-commits] russell: trunk r213046 - /trunk/main/features.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Aug 19 10:32:22 CDT 2009


Author: russell
Date: Wed Aug 19 10:32:18 2009
New Revision: 213046

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213046
Log:
Don't blow up on a NULL cdr.

Reported in #asterisk-dev.

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=213046&r1=213045&r2=213046
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Wed Aug 19 10:32:18 2009
@@ -3120,7 +3120,9 @@
 				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  */
 		}




More information about the svn-commits mailing list