[asterisk-commits] mmichelson: branch group/issue8824 r156751 - /team/group/issue8824/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 13 17:15:53 CST 2008


Author: mmichelson
Date: Thu Nov 13 17:15:53 2008
New Revision: 156751

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156751
Log:
Fix a potential crash due to a NULL pointer

Fixes AST-144


Modified:
    team/group/issue8824/channels/chan_local.c

Modified: team/group/issue8824/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/team/group/issue8824/channels/chan_local.c?view=diff&rev=156751&r1=156750&r2=156751
==============================================================================
--- team/group/issue8824/channels/chan_local.c (original)
+++ team/group/issue8824/channels/chan_local.c Thu Nov 13 17:15:53 2008
@@ -398,7 +398,7 @@
 	} else if (condition == AST_CONTROL_CONNECTED_LINE) {
 		/* We need to queue the actual channel's info, dawg */
 		isoutbound = IS_OUTBOUND(ast, p);
-		if (isoutbound) {
+		if (isoutbound && p->owner) {
 			/*XXX investigate later for potential deadlock issues */
 			ast_queue_connected_line_update(p->owner, &p->chan->connected);
 		}




More information about the asterisk-commits mailing list