In case of below scenario, da_info is freed immediately after cancel
request.
[client request thread] [http thread]
1. download start
2. network doesn't work temporary
3. wait for auto retry (pthread_cond_timedwait(cond_http))
4. request cancel
5. pthread_cond_signal(cond_http)
6. free da_info
7. access to da_info for
debugging message
(fault)
Change-Id: I3bf0002e643af77dac17f69c543d29570c1f3cde
ret = request_to_cancel_http_download(da_info);
if (ret != DA_RESULT_OK)
goto ERR;
- DA_LOGI("Download cancel Successful for download id[%d]", da_info->da_id);
+ DA_LOGI("Download cancel Successful for download id[%d]", dl_id);
ERR:
return ret;
Name: download-provider
Summary: Download the contents in background
-Version: 2.2.1
+Version: 2.2.2
Release: 0
Group: Development/Libraries
License: Apache-2.0