diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-10-13 13:47:02 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-10-13 13:47:02 +0000 |
commit | fb421186e6d8541f29ee0c8a9a8d42798caf5192 (patch) | |
tree | 560a50fbcdbf708da2310985278a5bcea29ff0c3 | |
parent | 280525df33b497013704154662c171de69f060d8 (diff) | |
download | samba-fb421186e6d8541f29ee0c8a9a8d42798caf5192.tar.gz samba-fb421186e6d8541f29ee0c8a9a8d42798caf5192.tar.bz2 samba-fb421186e6d8541f29ee0c8a9a8d42798caf5192.zip |
the response packets are being received (fix to process_nmb() worked)
however dead_netbios_entry() is still thinking that no response has
been received when the response_record times out for the registration
with the WINS server. only print a debug message when no registration
response is _really_ received from the WINS server.
lkcl
(This used to be commit e9eb9d70e3663b53a3535f2f0a64c5bf4b2403e7)
-rw-r--r-- | source3/nameresp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nameresp.c b/source3/nameresp.c index 2a8c5e88b0..9be0f4491f 100644 --- a/source3/nameresp.c +++ b/source3/nameresp.c @@ -101,7 +101,7 @@ static void dead_netbios_entry(struct subnet_record *d, { name_unregister_work(d,n->name.name,n->name.name_type); } - if (!n->bcast) + if (!n->bcast && n->num_msgs == 0) { DEBUG(0,("WINS server did not respond to name release!\n")); /* XXXX whoops. we have problems. must deal with this */ @@ -119,7 +119,7 @@ static void dead_netbios_entry(struct subnet_record *d, n->nb_flags, GET_TTL(0), n->reply_to_ip, False, n->reply_to_ip); - if (!n->bcast) + if (!n->bcast && n->num_msgs == 0) { DEBUG(1,("WINS server did not respond to name registration!\n")); /* XXXX whoops. we have problems. must deal with this */ @@ -144,7 +144,7 @@ static void dead_netbios_entry(struct subnet_record *d, name_register_work(d,n->name.name,n->name.name_type, n->nb_flags, n->ttl, n->reply_to_ip, n->bcast); } - else + else if (n->num_msgs == 0) { /* received no response. rfc1001.txt states that after retrying, we should assume the WINS server is dead, and fall back to |