From: Anthony Minessale Date: Sat, 21 Feb 2009 00:44:52 +0000 (+0000) Subject: fix bounds check X-Git-Tag: v1.0.6~38^3~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=282934f8a589c19b14e37b0c08174d25f8501169;p=thirdparty%2Ffreeswitch.git fix bounds check git-svn-id: http://svn.openzap.org/svn/openzap/trunk@665 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/freetdm/src/zap_io.c b/libs/freetdm/src/zap_io.c index 1e55a768c7..4647fbef04 100644 --- a/libs/freetdm/src/zap_io.c +++ b/libs/freetdm/src/zap_io.c @@ -839,7 +839,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z uint32_t span_max; if (span_id) { - if (span_id >= ZAP_MAX_SPANS_INTERFACE) { + if (span_id >= globals.span_index) { zap_log(ZAP_LOG_CRIT, "SPAN NOT DEFINED!\n"); *zchan = NULL; return ZAP_FAIL;