summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-10-11 17:55:16 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-10-11 17:55:16 +0000
commiteff62fd6db4128dbcd45fec8c1b146c5305d815e (patch)
tree01f4c7936037c927d2155b9b1a31757a922faab6
parentc71c1ff55f60f317039e3399f786e961dfac9e0b (diff)
downloadsamba-eff62fd6db4128dbcd45fec8c1b146c5305d815e.tar.gz
samba-eff62fd6db4128dbcd45fec8c1b146c5305d815e.tar.bz2
samba-eff62fd6db4128dbcd45fec8c1b146c5305d815e.zip
netbios registration and release response packets were being junked. a
BAD idea. lkcl (This used to be commit b790455aca91a5443df1010deafa9080b6348ca3)
-rw-r--r--source3/namepacket.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/source3/namepacket.c b/source3/namepacket.c
index cd133d0a53..e6677ee10d 100644
--- a/source3/namepacket.c
+++ b/source3/namepacket.c
@@ -394,12 +394,17 @@ static void process_nmb(struct packet_struct *p)
case NMB_REG:
case NMB_REG_REFRESH:
{
- if (nmb->header.qdcount==0 || nmb->header.arcount==0) break;
if (nmb->header.response)
+ {
+ if (nmb->header.ancount ==0) break;
response_netbios_packet(p); /* response to registration dealt
with here */
+ }
else
+ {
+ if (nmb->header.qdcount==0 || nmb->header.arcount==0) break;
reply_name_reg(p);
+ }
break;
}
@@ -439,17 +444,17 @@ static void process_nmb(struct packet_struct *p)
case NMB_REL:
{
- if (nmb->header.qdcount==0 || nmb->header.arcount==0)
- {
- DEBUG(2,("netbios release packet rejected\n"));
- break;
- }
-
if (nmb->header.response)
- response_netbios_packet(p); /* response to reply dealt with
- in here */
+ {
+ if (nmb->header.ancount ==0) break;
+ response_netbios_packet(p); /* response to release dealt
+ with here */
+ }
else
+ {
+ if (nmb->header.qdcount==0 || nmb->header.arcount==0) break;
reply_name_release(p);
+ }
break;
}
}