revert curl changes

This commit is contained in:
Anthony Minessale
2011-05-13 12:03:30 -05:00
parent 7d7e09a92c
commit c196e2c109
12 changed files with 23 additions and 4 deletions
+1
View File
@@ -1 +1,2 @@
WANT_CURL=yes
include ../../../../build/modmake.rules
+1
View File
@@ -1 +1,2 @@
WANT_CURL=yes
include ../../../../build/modmake.rules
+4 -1
View File
@@ -547,7 +547,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load)
globals.hash_root = NULL;
globals.hash_tail = NULL;
if (do_config() != SWITCH_STATUS_SUCCESS) {
if (do_config() == SWITCH_STATUS_SUCCESS) {
curl_global_init(CURL_GLOBAL_ALL);
} else {
return SWITCH_STATUS_FALSE;
}
@@ -571,6 +573,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_curl_shutdown)
}
switch_xml_unbind_search_function_ptr(xml_url_fetch);
curl_global_cleanup();
return SWITCH_STATUS_SUCCESS;
}