mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 10:07:26 +00:00
FSMOD-67 fix fortify findings for mod_unimrcp
This commit is contained in:
parent
d26ddd55f7
commit
336f0b4eda
@ -2410,7 +2410,7 @@ static switch_status_t recog_channel_get_results(speech_channel_t *schannel, cha
|
|||||||
switch_mutex_lock(schannel->mutex);
|
switch_mutex_lock(schannel->mutex);
|
||||||
if (!zstr(r->result)) {
|
if (!zstr(r->result)) {
|
||||||
*result = strdup(r->result);
|
*result = strdup(r->result);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) result:\n\n%s\n", schannel->name, *result);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) result:\n\n%s\n", schannel->name, *result ? *result : "");
|
||||||
r->result = NULL;
|
r->result = NULL;
|
||||||
r->start_of_input = 0;
|
r->start_of_input = 0;
|
||||||
} else if (r->start_of_input) {
|
} else if (r->start_of_input) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user