From f19b023f5771353e64f2fc532a344521db5813ca Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Fri, 24 Mar 2017 16:18:25 +0100 Subject: [PATCH] Fix Update_password function --- coreapi/account_creator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index ac40a7b92..7b0e7d85f 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -1037,7 +1037,7 @@ LinphoneRequestStatus linphone_account_creator_update_password_custom(LinphoneAc char *identity = _get_identity(creator); const char* new_pwd = (const char*)linphone_account_creator_get_user_data(creator); if (!identity || - (!creator->username || !creator->phone_number + ((!creator->username && !creator->phone_number) || !linphone_proxy_config_get_domain(creator->proxy_cfg) || (!creator->password && !creator->ha1) || !new_pwd )