From 2f39f845d57d37b6c2b86ad323786fed8874158d Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 13 Feb 2018 10:31:01 +0100 Subject: [PATCH] Fix crash in linphone_core_report_call_log(). --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index c95d2fa54..b82e749bf 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -917,7 +917,7 @@ void linphone_core_report_call_log(LinphoneCore *lc, LinphoneCallLog *call_log){ linphone_address_unref(conference_factory_addr); } const char *username = linphone_address_get_username(call_log->to); - if (strstr(username, "chatroom-") == username) + if (username && (strstr(username, "chatroom-") == username)) return; // End of workaround