git-svn-id: http://svn.openzap.org/svn/openzap/trunk@677 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Mathieu Rene 2009-03-01 23:44:28 +00:00
parent e15a98a9ac
commit 60fe2998d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;