fixed the freeze on logout bug. The fix has several parts:
commite1e86c1a160c8302004ea58e4f0f5874dd179dae
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Oct 1997 09:15:45 +0000 (15 09:15 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Oct 1997 09:15:45 +0000 (15 09:15 +0000)
treeb9a4a216f64d928e4589a55471beca4e621937c5
parent708edc348f0fb81d9c918e4bf857f339a13a3781
fixed the freeze on logout bug. The fix has several parts:

1) add a new parameter to queue_netbios_packet(), the "reply_id", this
is the id that should be used when sending a further response to the
packet (such as a response after we get back a reply to a name query
after senidnga  WACK). reply_id is 0 (meaning unused) in most cases.

2) fix the id used in the reply in add_name_respond() from
response_name_query_register()

3) remember to remove the response record at the end of
response_name_query_register()

4) get the right IP address (it was 0.0.0.0) in
response_name_query_register()

5) add a new field reply_id to struct response_record
source/include/nameserv.h
source/nameannounce.c
source/namebrowse.c
source/namedbresp.c
source/nameelect.c
source/namepacket.c
source/nameresp.c
source/nameserv.c
source/nameservreply.c
source/nameservresp.c
source/namework.c