]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
hrm hard coded values eh?
authorBrian West <brian@freeswitch.org>
Wed, 12 Aug 2009 20:32:00 +0000 (20:32 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 12 Aug 2009 20:32:00 +0000 (20:32 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@792 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/ozmod/ozmod_ss7_boost/ss7_boost_client.c

index 1cefc7878a9c71b9c0254c3b9ecaf7eb8b424fdf..b36bec1ca1822b037a0a83619ea00defa3bf5e92 100644 (file)
@@ -384,7 +384,7 @@ int __ss7bc_connection_write(ss7bc_connection_t *mcon, ss7bc_event_t *event, con
                abort();
        }
 
-       if (event->span > 16 || event->chan > 31) {
+       if (event->span >= ZAP_MAX_PHYSICAL_SPANS_PER_LOGICAL_SPAN || event->chan >= ZAP_MAX_CHANNELS_PHYSICAL_SPAN ) {
                zap_log(file, func, line, ZAP_LOG_LEVEL_CRIT, "Critical Error: TX Cmd=%s Invalid Span=%i Chan=%i\n", ss7bc_event_id_name(event->event_id), event->span, event->chan);
                abort();
                return -1;