summaryrefslogtreecommitdiff
path: root/source3/nameservreply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nameservreply.c')
-rw-r--r--source3/nameservreply.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/nameservreply.c b/source3/nameservreply.c
index b01c2c25b4..62b9ca0c49 100644
--- a/source3/nameservreply.c
+++ b/source3/nameservreply.c
@@ -507,14 +507,13 @@ void reply_name_query(struct packet_struct *p)
/* directed queries are for WINS server: broadcasts are local SELF queries.
the exception is Domain Master names. */
- int search = bcast ? FIND_LOCAL | FIND_SELF : FIND_WINS;
-
- if (name_type == 0x1b)
- {
- search |= FIND_WINS;
+ int search = bcast ? FIND_LOCAL | FIND_WINS: FIND_WINS;
+
+ if (!lp_wins_proxy()) {
+ search |= FIND_SELF;
}
- if (search | FIND_LOCAL)
+ if (search & FIND_LOCAL)
{
if (!(d = find_req_subnet(p->ip, bcast)))
{