mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Fix auth_info_new usage
This commit is contained in:
parent
354b234f9b
commit
8a479b2347
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue