From 8a479b23478a9f2c3fd7ced3063f83f4f1009e34 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 11 Dec 2013 11:03:39 +0100 Subject: [PATCH] Fix auth_info_new usage --- daemon/commands/register.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/commands/register.cc b/daemon/commands/register.cc index 84778de65..7b99f4370 100644 --- a/daemon/commands/register.cc +++ b/daemon/commands/register.cc @@ -36,7 +36,8 @@ void RegisterCommand::exec(Daemon *app, const char *args) { if (password[0] != '\0') { LinphoneAddress *from = linphone_address_new(identity); if (from != NULL) { - LinphoneAuthInfo *info = linphone_auth_info_new(linphone_address_get_username(from), userid, password, NULL, realm); /*create authentication structure from identity*/ + LinphoneAuthInfo *info = linphone_auth_info_new(linphone_address_get_username(from), + userid, password, NULL, realm, NULL); linphone_core_add_auth_info(lc, info); /*add authentication info to LinphoneCore*/ linphone_address_destroy(from); linphone_auth_info_destroy(info);