Author: mrene Date: Thu Mar 12 13:51:36 2009 New Revision: 12586 Log: MDXMLINT-48 Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c ============================================================================== --- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (original) +++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c Thu Mar 12 13:51:36 2009 @@ -198,8 +198,11 @@ curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0); } + memset(&config_data, 0, sizeof(config_data)); + config_data.name = filename; 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 (!switch_strlen_zero(binding->cred)) { curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);