diff options
Diffstat (limited to 'source3/nameservresp.c')
-rw-r--r-- | source3/nameservresp.c | 12 |
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); } |