diff options
Diffstat (limited to 'funcs/func_curl.c')
-rw-r--r-- | funcs/func_curl.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c index 802bbb4a0..b32d5f748 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -135,7 +135,6 @@ static int curl_internal(struct MemoryStruct *chunk, char *url, char *post) static int acf_curl_exec(struct ast_channel *chan, const char *cmd, char *info, char *buf, size_t len) { - struct ast_module_user *u; struct MemoryStruct chunk = { NULL, 0 }; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(url); @@ -149,8 +148,6 @@ static int acf_curl_exec(struct ast_channel *chan, const char *cmd, char *info, return -1; } - u = ast_module_user_add(chan); - AST_STANDARD_APP_ARGS(args, info); if (!curl_internal(&chunk, args.url, args.postdata)) { @@ -166,8 +163,6 @@ static int acf_curl_exec(struct ast_channel *chan, const char *cmd, char *info, ast_log(LOG_ERROR, "Cannot allocate curl structure\n"); } - ast_module_user_remove(u); - return 0; } |