summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-10-23 18:38:05 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-10-23 18:38:05 +0000
commit4ec574af76a41016030ac3becf62f06700505bfc (patch)
tree1077a268f9c6953c1f963794e153e1717bb27c1e
parent44df12f236b3e593f67c9a297cf9a41c37122472 (diff)
downloadsamba-4ec574af76a41016030ac3becf62f06700505bfc.tar.gz
samba-4ec574af76a41016030ac3becf62f06700505bfc.tar.bz2
samba-4ec574af76a41016030ac3becf62f06700505bfc.zip
wrong answer response resource record type expected, so the response packet
was being abandoned. oops. lkcl (This used to be commit cf2ed4183be250a7a6e110fd79decbd9d234b382)
-rw-r--r--source3/nameservresp.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/nameservresp.c b/source3/nameservresp.c
index 1c53e80b9d..7becf301d2 100644
--- a/source3/nameservresp.c
+++ b/source3/nameservresp.c
@@ -624,7 +624,7 @@ static BOOL response_compatible(struct response_record *n,
{
case NAME_RELEASE:
{
- if (nmb->answers->rr_type != NMB_REL)
+ if (nmb->answers->rr_type != 0x20)
{
DEBUG(1,("Name release reply has wrong answer rr_type\n"));
return False;
@@ -634,7 +634,7 @@ static BOOL response_compatible(struct response_record *n,
case NAME_REGISTER:
{
- if (nmb->answers->rr_type != NMB_REG)
+ if (nmb->answers->rr_type != 0x20)
{
DEBUG(1,("Name register reply has wrong answer rr_type\n"));
return False;
@@ -652,7 +652,7 @@ static BOOL response_compatible(struct response_record *n,
case NAME_QUERY_FIND_MST:
case NAME_QUERY_MST_CHK:
{
- if (nmb->answers->rr_type != NMB_QUERY)
+ if (nmb->answers->rr_type != 0x20)
{
DEBUG(1,("Name query reply has wrong answer rr_type\n"));
return False;
@@ -663,7 +663,7 @@ static BOOL response_compatible(struct response_record *n,
case NAME_STATUS_DOM_SRV_CHK:
case NAME_STATUS_SRV_CHK:
{
- if (nmb->answers->rr_type != NMB_STATUS)
+ if (nmb->answers->rr_type != 0x21)
{
DEBUG(1,("Name status reply has wrong answer rr_type\n"));
return False;
@@ -810,10 +810,6 @@ void response_netbios_packet(struct packet_struct *p)
if (response_problem_check(n, nmb, qname))
return;
- /* now check whether the 'state' has received the correct type of response */
- if (!response_compatible(n, nmb))
- return;
-
/* now deal with the current state */
response_process(d, p, n, nmb, bcast, ans_name);
}