mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 05:29:22 +00:00
Merge pull request #1421 from signalwire/unicall-array-overflow
[mod_unicall] Fix array overflow
This commit is contained in:
commit
132d3d4f2e
@ -1771,7 +1771,7 @@ static switch_status_t config_unicall(int reload)
|
|||||||
for (i = min_span; i <= max_span; i++) {
|
for (i = min_span; i <= max_span; i++) {
|
||||||
current_span = i;
|
current_span = i;
|
||||||
|
|
||||||
if (current_span <= 0 || current_span > MAX_SPANS) {
|
if (current_span <= 0 || current_span >= MAX_SPANS) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid SPAN %d!\n", current_span);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid SPAN %d!\n", current_span);
|
||||||
current_span = 0;
|
current_span = 0;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user