From e6f58de87e6f1179c4d18ce1b786ff5605f52189 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 21 Nov 2017 10:37:29 +0100 Subject: [PATCH] Fix probable crash. --- coreapi/proxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index fd8bdbbd2..134c2bdf1 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -1439,6 +1439,8 @@ const LinphoneAddress *linphone_proxy_config_get_contact (const LinphoneProxyCon } // Warning : Do not remove, the op can change its contact_address + if (!cfg->op) + return NULL; const SalAddress *salAddr = cfg->op->get_contact_address(); if (!salAddr) return NULL;