Commit d495761e authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Fix crash in log upload

parent 725b8665
...@@ -669,7 +669,7 @@ void linphone_core_upload_log_collection(LinphoneCore *core) { ...@@ -669,7 +669,7 @@ void linphone_core_upload_log_collection(LinphoneCore *core) {
liblinphone_log_collection_prefix ? liblinphone_log_collection_prefix : LOG_COLLECTION_DEFAULT_PREFIX, liblinphone_log_collection_prefix ? liblinphone_log_collection_prefix : LOG_COLLECTION_DEFAULT_PREFIX,
COMPRESSED_LOG_COLLECTION_EXTENSION); COMPRESSED_LOG_COLLECTION_EXTENSION);
linphone_content_set_name(core->log_collection_upload_information, name); linphone_content_set_name(core->log_collection_upload_information, name);
if (prepare_log_collection_file_to_upload(name) < 0) return; if (prepare_log_collection_file_to_upload(name) <= 0) return;
linphone_content_set_size(core->log_collection_upload_information, get_size_of_file_to_upload(name)); linphone_content_set_size(core->log_collection_upload_information, get_size_of_file_to_upload(name));
uri = belle_generic_uri_parse(linphone_core_get_log_collection_upload_server_url(core)); uri = belle_generic_uri_parse(linphone_core_get_log_collection_upload_server_url(core));
req = belle_http_request_create("POST", uri, NULL, NULL, NULL); req = belle_http_request_create("POST", uri, NULL, NULL, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment