[svn-commits] russell: trunk r278051 - /trunk/channels/chan_local.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 20 12:22:40 CDT 2010


Author: russell
Date: Tue Jul 20 12:22:36 2010
New Revision: 278051

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=278051
Log:
Only call ast_channel_cc_params_init() if allocating a channel succeeds.

Modified:
    trunk/channels/chan_local.c

Modified: trunk/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_local.c?view=diff&rev=278051&r1=278050&r2=278051
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Tue Jul 20 12:22:36 2010
@@ -897,7 +897,7 @@
 			AST_LIST_UNLOCK(&locals);
 			p = local_pvt_destroy(p);
 		}
-		if (ast_channel_cc_params_init(chan, requestor ? ast_channel_get_cc_config_params((struct ast_channel *)requestor) : NULL)) {
+		if (chan && ast_channel_cc_params_init(chan, requestor ? ast_channel_get_cc_config_params((struct ast_channel *)requestor) : NULL)) {
 			chan = ast_channel_release(chan);
 			p = local_pvt_destroy(p);
 		}




More information about the svn-commits mailing list