summaryrefslogtreecommitdiffstats
path: root/source/namepacket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-07 11:06:34 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-07 11:06:34 +0000
commitbfa816cc8f30d9a629b4fe9f71bf0707aa6c4502 (patch)
treedee79a8127749509c8f9a1aae37ba4df145ee4c3 /source/namepacket.c
parent3cd7303dbc2118db7084a6d8872403d825c52323 (diff)
downloadsamba-bfa816cc8f30d9a629b4fe9f71bf0707aa6c4502.tar.gz
samba-bfa816cc8f30d9a629b4fe9f71bf0707aa6c4502.tar.xz
samba-bfa816cc8f30d9a629b4fe9f71bf0707aa6c4502.zip
- continue when failing to load config file in nmblookup and smbclient
- fix important bug in nmbd where it set the return code for a negative name response to 0 (which means success!)
Diffstat (limited to 'source/namepacket.c')
-rw-r--r--source/namepacket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/namepacket.c b/source/namepacket.c
index 5bfa55d4f16..cd133d0a53b 100644
--- a/source/namepacket.c
+++ b/source/namepacket.c
@@ -252,7 +252,7 @@ void reply_netbios_packet(struct packet_struct *p1,int trn_id,
nmb->header.ancount = 1;
nmb->header.nscount = 0;
nmb->header.arcount = 0;
- nmb->header.rcode = 0;
+ nmb->header.rcode = rcode;
bzero((char*)&nmb->question,sizeof(nmb->question));