From a0affe66aba8b9b2b3bfa53127d87ebcb6fe4823 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 7 Jun 2016 15:45:53 +0200 Subject: [PATCH] address.c: dont check linphone_address_set_domain --- coreapi/address.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/coreapi/address.c b/coreapi/address.c index 8f4cb9df4..83e9d5a5e 100644 --- a/coreapi/address.c +++ b/coreapi/address.c @@ -106,17 +106,8 @@ int linphone_address_set_username(LinphoneAddress *uri, const char *username){ * Sets the domain. **/ int linphone_address_set_domain(LinphoneAddress *uri, const char *host){ - if (host) { - char *identity = ms_strdup_printf("sip:%s", host); - LinphoneAddress* test = linphone_address_new(identity); - ms_free(identity); - if (test) { - sal_address_set_domain(uri,host); - linphone_address_destroy(test); - return 0; - } - } - return -1; + sal_address_set_domain(uri,host); + return 0; }