提交 37079aab authored 作者: Brian West's avatar Brian West

hrm hard coded values eh?

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@792 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 6af827a7
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论