summaryrefslogtreecommitdiff
path: root/net/linphone/files/patch-osipua::src::osipua.c
blob: 8d9e0b9690230bd1104787d3a659d4fc7b334c86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- osipua/src/osipua.c.orig	Sat Aug 16 02:30:51 2003
+++ osipua/src/osipua.c	Thu Oct 23 12:56:06 2003
@@ -591,8 +591,7 @@
 			if (ipaddr != NULL)
 			{
 				osip_trace(OSIP_INFO1,("osip_ua_find 1: %s <> %s \n",ua->ua_ipaddr,ipaddr));
-				if ((strcasecmp(ua->ua_ipaddr,ipaddr)==0) || (strcasecmp("127.0.0.1",ipaddr)==0) ||
-				   	IN6_IS_ADDR_LOOPBACK(res->ai_addr))
+				if ((strcasecmp(ua->ua_ipaddr,ipaddr)==0) || (strcasecmp("127.0.0.1",ipaddr)==0))
 				{
 				   	 ret_ua=ua;       /* ip addresses match */
 				}
@@ -600,7 +599,7 @@
 			else ret_ua=ua;	/* we accept uncheckable host names... */
 			ret_ua=ua;
 #else
-			if (ip4addr!=NULL)
+			if (ipaddr!=NULL)
 			{
 				osip_trace(OSIP_INFO1,("osip_ua_find 1: %s <> %s \n",ua->ua_ip4addr,ipaddr));
 				if ((strcasecmp(ua->ua_ip4addr,ipaddr)==0) || (strcasecmp("127.0.0.1",ipaddr)==0))