[asterisk-commits] qwell: branch 1.4 r114120 - /branches/1.4/channels/chan_h323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 14 13:31:57 CDT 2008


Author: qwell
Date: Mon Apr 14 13:31:57 2008
New Revision: 114120

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114120
Log:
The call_token on the pvt can occasionally be NULL, causing a crash.

If it is NULL, we can skip this channel, since it can't the one we're looking for.

(closes issue #9299)
Reported by: vazir

Modified:
    branches/1.4/channels/chan_h323.c

Modified: branches/1.4/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_h323.c?view=diff&rev=114120&r1=114119&r2=114120
==============================================================================
--- branches/1.4/channels/chan_h323.c (original)
+++ branches/1.4/channels/chan_h323.c Mon Apr 14 13:31:57 2008
@@ -1149,7 +1149,7 @@
 	while(pvt) {
 		if (!pvt->needdestroy && ((signed int)pvt->cd.call_reference == call_reference)) {
 			/* Found the call */
-			if ((token != NULL) && (!strcmp(pvt->cd.call_token, token))) {
+			if ((token != NULL) && (pvt->cd.call_token != NULL) && (!strcmp(pvt->cd.call_token, token))) {
 				ast_mutex_lock(&pvt->lock);
 				ast_mutex_unlock(&iflock);
 				return pvt;




More information about the asterisk-commits mailing list