mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 07:38:09 +00:00
fix crash in quality reporting if ip was not valid on call end
This commit is contained in:
parent
037859f83a
commit
1d7d5f47eb
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue