mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-21 23:00:13 +00:00
FS-6515 --resolve
This commit is contained in:
parent
c856023188
commit
717bcf617e
@ -1318,6 +1318,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
|
|||||||
if (strchr(terminators, buf[i]) && terminator != NULL) {
|
if (strchr(terminators, buf[i]) && terminator != NULL) {
|
||||||
*terminator = buf[i];
|
*terminator = buf[i];
|
||||||
buf[i] = '\0';
|
buf[i] = '\0';
|
||||||
|
switch_safe_free(abuf);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1381,6 +1382,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
|
|||||||
|
|
||||||
if (!zstr(terminators) && strchr(terminators, dtmf.digit) && terminator != NULL) {
|
if (!zstr(terminators) && strchr(terminators, dtmf.digit) && terminator != NULL) {
|
||||||
*terminator = dtmf.digit;
|
*terminator = dtmf.digit;
|
||||||
|
switch_safe_free(abuf);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1389,6 +1391,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
|
|||||||
buf[x] = '\0';
|
buf[x] = '\0';
|
||||||
|
|
||||||
if (x >= buflen || x >= maxdigits) {
|
if (x >= buflen || x >= maxdigits) {
|
||||||
|
switch_safe_free(abuf);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user