svn commit: samba r15798 - in branches/SAMBA_4_0/source/lib/socket:
.
tridge at samba.org
tridge at samba.org
Mon May 22 09:02:16 GMT 2006
Author: tridge
Date: 2006-05-22 09:02:16 +0000 (Mon, 22 May 2006)
New Revision: 15798
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15798
Log:
shortcut the lookup of "localhost" in the ipv6 backend
Modified:
branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c 2006-05-22 06:18:40 UTC (rev 15797)
+++ branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c 2006-05-22 09:02:16 UTC (rev 15798)
@@ -28,7 +28,11 @@
struct hostent *he;
if (name == NULL) return in6addr_any;
-
+
+ if (strcasecmp(name, "localhost") == 0) {
+ name = "::1";
+ }
+
he = gethostbyname2(name, PF_INET6);
if (he == NULL) return in6addr_any;
More information about the samba-cvs
mailing list