From 5b6a3b74cfbb4fc14a774dc2d64b570804d62933 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Sun, 1 Mar 2009 23:44:28 +0000 Subject: [PATCH] doh git-svn-id: http://svn.openzap.org/svn/openzap/trunk@677 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/zap_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/freetdm/src/zap_io.c b/libs/freetdm/src/zap_io.c index ad00ce9f03..0f6bf94bf5 100644 --- a/libs/freetdm/src/zap_io.c +++ b/libs/freetdm/src/zap_io.c @@ -914,7 +914,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z check->state == ZAP_CHANNEL_STATE_DOWN ) { - if (globals.spans[span_id]->channel_request) { + if (globals.spans[span_id] && globals.spans[span_id]->channel_request) { status = globals.spans[span_id]->channel_request(globals.spans[span_id], i, direction, caller_data, zchan); zap_mutex_unlock(span->mutex); goto done;