summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/nbt_server/wins/winsserver.c9
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);