]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix parsing error in verto
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Jan 2015 15:47:40 +0000 (09:47 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Jan 2015 21:47:27 +0000 (15:47 -0600)
src/mod/endpoints/mod_verto/mod_verto.c

index 08f4a5095c6ac034e8b63dcdbc8313d43239abca..58b66a9b6146942a6050db2f4a5a8cfd6f52e14c 100644 (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;
                }