fix parsing error in verto

This commit is contained in:
Anthony Minessale committed 2015-01-16 15:47:27 -06:00
1 parent d7112c4da9
commit dc00863d5e
1 file changed
+1 -1
+1 -1
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");
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)) {
return SWITCH_FALSE;
}