diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-29 17:03:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:48:56 -0500 |
commit | 2842acf5e30077a702632dd5d7b0ad0ce59b6a62 (patch) | |
tree | 734e57cdaf2f9b1368f323a87494ed927b1a76ee /source4/nbt_server | |
parent | 8faa1f4f9af114985b0c6b7383f0f1c935e83f9f (diff) | |
download | samba-2842acf5e30077a702632dd5d7b0ad0ce59b6a62.tar.gz samba-2842acf5e30077a702632dd5d7b0ad0ce59b6a62.tar.bz2 samba-2842acf5e30077a702632dd5d7b0ad0ce59b6a62.zip |
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 f68a883daf4c792e95f7a4be9e7d00e82cc0517b)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/winsserver.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c index 44842c7542..e30ac11397 100644 --- a/source4/nbt_server/wins/winsserver.c +++ b/source4/nbt_server/wins/winsserver.c @@ -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); |