[svn-commits] tilghman: branch 1.4 r87120 - /branches/1.4/funcs/func_curl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Oct 26 08:54:30 CDT 2007


Author: tilghman
Date: Fri Oct 26 08:54:30 2007
New Revision: 87120

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87120
Log:
The addition of autoservice to func_curl additionally made func_curl dependent
on the existence of a channel, with no real reason.  This should make func_curl
once again work without a channel.
Reported by jmls.
Fixed by tilghman.
Closes issue #11090

Modified:
    branches/1.4/funcs/func_curl.c

Modified: branches/1.4/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_curl.c?view=diff&rev=87120&r1=87119&r2=87120
==============================================================================
--- branches/1.4/funcs/func_curl.c (original)
+++ branches/1.4/funcs/func_curl.c Fri Oct 26 08:54:30 2007
@@ -145,7 +145,8 @@
 
 	AST_STANDARD_APP_ARGS(args, info);	
 
-	ast_autoservice_start(chan);
+	if (chan)
+		ast_autoservice_start(chan);
 
 	if (!curl_internal(&chunk, args.url, args.postdata)) {
 		if (chunk.memory) {
@@ -160,7 +161,8 @@
 		ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
 	}
 
-	ast_autoservice_stop(chan);
+	if (chan)
+		ast_autoservice_stop(chan);
 
 	ast_module_user_remove(u);
 




More information about the svn-commits mailing list