]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
whoops (MODENDP-103)
authorMichael Jerris <mike@jerris.com>
Mon, 7 Apr 2008 06:01:27 +0000 (06:01 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 7 Apr 2008 06:01:27 +0000 (06:01 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@450 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/zap_isdn.c

index 08ab6fe6f11c3de108dc6bce0e1107391ea3a3e0..a2356385427c608164ae18c6c083a0314c8f080b 100644 (file)
@@ -233,7 +233,7 @@ static L3INT zap_isdn_931_34(void *pvt, L2UCHAR *msg, L2INT mlen)
                                                }
                                        }
 
-                                       if (zchan->state == ZAP_CHANNEL_STATE_DOWN) {
+                                       if (zchan && zchan->state == ZAP_CHANNEL_STATE_DOWN) {
                                                isdn_data->channels_remote_crv[gen->CRV] = zchan;
                                                memset(&zchan->caller_data, 0, sizeof(zchan->caller_data));