fix parsing error in verto

This commit is contained in:
Anthony Minessale 2015-01-16 09:47:40 -06:00
parent d7112c4da9
commit dc00863d5e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }