From cc818e155f067937414b4cfa5b20e6710d4794e4 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 27 Sep 2016 15:58:02 +0200 Subject: [PATCH] Fix infinite loop when calling linphone_core_enable_log_collection with the wrong state --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 681a411d0..3e2065c23 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -274,7 +274,7 @@ static void linphone_core_log_collection_handler(const char *domain, OrtpLogLeve time_t tt; int ret; - if (liblinphone_log_func != NULL) { + if (liblinphone_log_func != NULL && liblinphone_log_func != linphone_core_log_collection_handler) { #ifndef _WIN32 va_list args_copy; va_copy(args_copy, args);