From 4ec574af76a41016030ac3becf62f06700505bfc Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Wed, 23 Oct 1996 18:38:05 +0000 Subject: wrong answer response resource record type expected, so the response packet was being abandoned. oops. lkcl (This used to be commit cf2ed4183be250a7a6e110fd79decbd9d234b382) --- source3/nameservresp.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'source3/nameservresp.c') 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); } -- cgit