[asterisk-commits] qwell: branch 1.4 r76174 - /branches/1.4/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 20 15:32:56 CDT 2007


Author: qwell
Date: Fri Jul 20 15:32:55 2007
New Revision: 76174

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76174
Log:
It's possible for sub->owner to be NULL here if you cancel the call immediately after/during sending a digit.

Modified:
    branches/1.4/channels/chan_skinny.c

Modified: branches/1.4/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_skinny.c?view=diff&rev=76174&r1=76173&r2=76174
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Fri Jul 20 15:32:55 2007
@@ -4160,7 +4160,7 @@
 
 		sub = find_subchannel_by_instance_reference(d, lineInstance, callReference);
 
-		if (sub && (sub->owner->_state <  AST_STATE_UP)) {
+		if (sub && (sub->owner && sub->owner->_state <  AST_STATE_UP)) {
 			char dgt;
 			int digit = letohl(req->data.keypad.button);
 			size_t len;




More information about the asterisk-commits mailing list