From 5529671088b6711b90c5abc21d972a3d20e5f124 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Wed, 19 Oct 2016 11:47:26 +0200 Subject: [PATCH] Fix ha1 params order --- coreapi/account_creator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index e560833b0..d53fae5d7 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -577,7 +577,7 @@ static LinphoneXmlRpcRequest * _create_account_with_phone(LinphoneAccountCreator request = linphone_xml_rpc_request_new_with_args("create_phone_account", LinphoneXmlRpcArgString, LinphoneXmlRpcArgString, creator->phone_number, LinphoneXmlRpcArgString, creator->username ? creator->username : creator->phone_number, - LinphoneXmlRpcArgString, creator->password ? ha1_for_passwd(creator->username ? creator->username : creator->phone_number, creator->password, creator->domain) : "", + LinphoneXmlRpcArgString, creator->password ? ha1_for_passwd(creator->username ? creator->username : creator->phone_number, creator->domain, creator->password) : "", LinphoneXmlRpcArgString, linphone_core_get_user_agent(creator->core), LinphoneXmlRpcArgString, creator->domain, LinphoneXmlRpcArgString, creator->language, @@ -593,7 +593,7 @@ static LinphoneXmlRpcRequest * _create_account_with_email(LinphoneAccountCreator request = linphone_xml_rpc_request_new_with_args("create_email_account", LinphoneXmlRpcArgString, LinphoneXmlRpcArgString, creator->username, LinphoneXmlRpcArgString, creator->email, - LinphoneXmlRpcArgString, ha1_for_passwd(creator->username ? creator->username : creator->phone_number, creator->password, creator->domain), + LinphoneXmlRpcArgString, ha1_for_passwd(creator->username ? creator->username : creator->phone_number, creator->domain, creator->password), LinphoneXmlRpcArgString, linphone_core_get_user_agent(creator->core), LinphoneXmlRpcArgString, creator->domain, LinphoneXmlRpcArgNone);