svn commit: samba r12578 - in
branches/SAMBA_4_0/source/nbt_server/wins: .
metze at samba.org
metze at samba.org
Thu Dec 29 17:03:17 GMT 2005
Author: metze
Date: 2005-12-29 17:03:17 +0000 (Thu, 29 Dec 2005)
New Revision: 12578
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12578
Log:
- w2k3 allows entries with 127.0.0.1 as address, so we should do
to make it possible to add a static record for localhost or so...
- we already make sure we don't register 127.0.0.1 with our wins server,
so the check for loopback in the non-wins name queries is enough
metze
Modified:
branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c
Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c 2005-12-29 16:58:35 UTC (rev 12577)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c 2005-12-29 17:03:17 UTC (rev 12578)
@@ -81,7 +81,7 @@
rec.node = node;
rec.is_static = False;
rec.expire_time = time(NULL) + ttl;
- rec.version = 0; /* will allocated later */
+ rec.version = 0; /* will be allocated later */
rec.wins_owner = NULL; /* will be set later */
rec.registered_by = src->addr;
rec.addresses = winsdb_addr_list_make(packet);
@@ -371,13 +371,6 @@
goto notfound;
}
- /* if the query didn't come from loopback, then never give out
- loopback in the reply, as loopback means something
- different for the recipient than for us */
- if (strcmp(src->addr, "127.0.0.1") != 0) {
- str_list_remove(addresses, "127.0.0.1");
- }
-
found:
nbtd_name_query_reply(nbtsock, packet, src, name,
0, nb_flags, addresses);
More information about the samba-cvs
mailing list