From 2db728a6bf030a22374faa79f18026598fc5a354 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 5 Nov 2013 10:49:38 +0100 Subject: [PATCH] Fix compilation issue --- coreapi/authentication.c | 2 +- coreapi/sipwizard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/authentication.c b/coreapi/authentication.c index 0737ebf6d..977e489f5 100644 --- a/coreapi/authentication.c +++ b/coreapi/authentication.c @@ -335,7 +335,7 @@ void linphone_core_add_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info) /* find if we are attempting to modify an existing auth info */ ai=(LinphoneAuthInfo*)linphone_core_find_auth_info(lc,info->realm,info->username,info->domain); - if (ai!=NULL && ai->domain && strcmp(ai->domain, info->domain)==0){ + if (ai!=NULL && ai->domain && info->domain && strcmp(ai->domain, info->domain)==0){ lc->auth_info=ms_list_remove(lc->auth_info,ai); linphone_auth_info_destroy(ai); } diff --git a/coreapi/sipwizard.c b/coreapi/sipwizard.c index ee268e50c..c81dabf35 100644 --- a/coreapi/sipwizard.c +++ b/coreapi/sipwizard.c @@ -214,7 +214,7 @@ static int sip_wizard_do_login(SipSetupContext * ctx, const char *uri, const cha tmp=linphone_address_as_string(parsed_uri); linphone_proxy_config_set_identity(cfg,tmp); if (passwd) { - auth=linphone_auth_info_new(linphone_address_get_username(parsed_uri),NULL,passwd,NULL,NULL); + auth=linphone_auth_info_new(linphone_address_get_username(parsed_uri),NULL,passwd,NULL,NULL,NULL); linphone_core_add_auth_info(lc,auth); } linphone_proxy_config_enable_register(cfg,TRUE);