summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-01-29 02:18:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:14 -0500
commite03b7d30d59637739b7b7621a4675a87e51b8c74 (patch)
tree4d66b1d4b8f01e1a030403dde7c5fd78bef1ff2a /source3/nmbd
parent22923f7d2d20afb758f48a371160473a2a900750 (diff)
downloadsamba-e03b7d30d59637739b7b7621a4675a87e51b8c74.tar.gz
samba-e03b7d30d59637739b7b7621a4675a87e51b8c74.tar.bz2
samba-e03b7d30d59637739b7b7621a4675a87e51b8c74.zip
r5077: Use correct type for rr record on negative name query reply.
Jeremy. (This used to be commit 86c5548d272c0804c0188ae744ae1bb17eb817f6)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_packets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c
index 70ea087426..f6d267c8f1 100644
--- a/source3/nmbd/nmbd_packets.c
+++ b/source3/nmbd/nmbd_packets.c
@@ -891,6 +891,9 @@ void reply_netbios_packet(struct packet_struct *orig_packet,
packet_type = "nmb_query";
nmb->header.nm_flags.recursion_desired = True;
nmb->header.nm_flags.recursion_available = True;
+ if (rcode) {
+ use_null_rr_type = True;
+ }
break;
case NMB_REG:
case NMB_REG_REFRESH: