mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
fix parsing error in verto
This commit is contained in:
parent
d7112c4da9
commit
dc00863d5e
@ -3612,7 +3612,7 @@ static switch_bool_t fsapi_func(const char *method, cJSON *params, jsock_t *jsoc
|
|||||||
arg = cJSON_GetObjectItem(params, "arg");
|
arg = cJSON_GetObjectItem(params, "arg");
|
||||||
|
|
||||||
|
|
||||||
if (jsock->allowed_fsapi) {
|
if (cmd && jsock->allowed_fsapi) {
|
||||||
if (cmd->type == cJSON_String && cmd->valuestring && !auth_api_command(jsock, cmd->valuestring, arg ? arg->valuestring : NULL)) {
|
if (cmd->type == cJSON_String && cmd->valuestring && !auth_api_command(jsock, cmd->valuestring, arg ? arg->valuestring : NULL)) {
|
||||||
return SWITCH_FALSE;
|
return SWITCH_FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user