From 80832799034b822dbc8547039d8f222d97b45b02 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 7 Apr 2008 06:01:27 +0000 Subject: [PATCH] whoops (MODENDP-103) git-svn-id: http://svn.openzap.org/svn/openzap/trunk@450 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/zap_isdn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openzap/src/zap_isdn.c b/libs/openzap/src/zap_isdn.c index 08ab6fe6f1..a235638542 100644 --- a/libs/openzap/src/zap_isdn.c +++ b/libs/openzap/src/zap_isdn.c @@ -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));