summaryrefslogtreecommitdiff
path: root/source4/nbt_server/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/nbt_server/query.c')
-rw-r--r--source4/nbt_server/query.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/nbt_server/query.c b/source4/nbt_server/query.c
index 39300f6e014..793e4671d52 100644
--- a/source4/nbt_server/query.c
+++ b/source4/nbt_server/query.c
@@ -71,9 +71,15 @@ void nbtd_request_query(struct nbt_name_socket *nbtsock,
return;
}
+ /*
+ * normally we should forward all queries with the
+ * recursion desired flag to the wins server, but this
+ * breaks are winsclient code, when doing mhomed registrations
+ */
if (!(packet->operation & NBT_FLAG_BROADCAST) &&
(packet->operation & NBT_FLAG_RECURSION_DESIRED) &&
- (iname->nb_flags & NBT_NM_GROUP)) {
+ (iname->nb_flags & NBT_NM_GROUP) &&
+ lp_wins_support()) {
nbtd_winsserver_request(nbtsock, packet, src);
return;
}