fix crash in quality reporting if ip was not valid on call end

This commit is contained in:
Gautier Pelloux-Prayer 2014-04-28 17:53:53 +02:00
parent 037859f83a
commit 1d7d5f47eb
2 changed files with 3 additions and 2 deletions

View file

@ -235,7 +235,8 @@ static void reporting_publish(const LinphoneCall* call, const reporting_session_
// if the call was hungup too early, we might have invalid IPs information
// in that case, we abort the report since it's not useful data
if (strlen(report->info.local_addr.ip) == 0 || strlen(report->info.remote_addr.ip) == 0) {
if (report->info.local_addr.ip == NULL || strlen(report->info.local_addr.ip) == 0
|| report->info.remote_addr.ip == NULL || strlen(report->info.remote_addr.ip) == 0) {
ms_warning("The call was hang up too early (duration: %d sec) and IP could "
"not be retrieved so dropping this report", linphone_call_get_duration(call));
return;

@ -1 +1 @@
Subproject commit 69cf3ba35c3533f8092b177bdc854a6fb45ceaa3
Subproject commit f6c6813f0cdffaaa290d3933b7f6a92d586bae72