diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-10-23 18:38:05 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-10-23 18:38:05 +0000 |
commit | cf2ed4183be250a7a6e110fd79decbd9d234b382 (patch) | |
tree | d23a780fb7c45dd41da4692eca6bc379602792c9 /source/nameservresp.c | |
parent | 92a3d0f3e18f7e50ea24053a989fd0096264c816 (diff) | |
download | samba-cf2ed4183be250a7a6e110fd79decbd9d234b382.tar.gz samba-cf2ed4183be250a7a6e110fd79decbd9d234b382.tar.xz samba-cf2ed4183be250a7a6e110fd79decbd9d234b382.zip |
wrong answer response resource record type expected, so the response packet
was being abandoned. oops.
lkcl
Diffstat (limited to 'source/nameservresp.c')
-rw-r--r-- | source/nameservresp.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/nameservresp.c b/source/nameservresp.c index 1c53e80b9dc..7becf301d2b 100644 --- a/source/nameservresp.c +++ b/source/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); } |