1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r12578: - 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
(This used to be commit f68a883daf)
This commit is contained in:
Stefan Metzmacher 2005-12-29 17:03:17 +00:00 committed by Gerald (Jerry) Carter
parent 8faa1f4f9a
commit 2842acf5e3

View File

@ -81,7 +81,7 @@ static uint8_t wins_register_new(struct nbt_name_socket *nbtsock,
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 @@ static void nbtd_winsserver_query(struct nbt_name_socket *nbtsock,
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);