mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
MDXMLINT-48
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12586 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
45110ff36e
commit
a03415c255
@ -198,8 +198,11 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
|
|||||||
curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
|
curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&config_data, 0, sizeof(config_data));
|
||||||
|
|
||||||
config_data.name = filename;
|
config_data.name = filename;
|
||||||
config_data.max_bytes = XML_CURL_MAX_BYTES;
|
config_data.max_bytes = XML_CURL_MAX_BYTES;
|
||||||
|
|
||||||
if ((config_data.fd = open(filename, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
|
if ((config_data.fd = open(filename, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
|
||||||
if (!switch_strlen_zero(binding->cred)) {
|
if (!switch_strlen_zero(binding->cred)) {
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user