summaryrefslogtreecommitdiff
path: root/source3/nameresp.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-05-15 23:47:34 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-05-15 23:47:34 +0000
commit5495a3446d769a2501ee558bda54146bef507e78 (patch)
tree56612a03fb1b1f08d5816426fe49d56a0a980c8c /source3/nameresp.c
parente896730fe71c984f41e3cd62d2f7eadb1cf3d51b (diff)
downloadsamba-5495a3446d769a2501ee558bda54146bef507e78.tar.gz
samba-5495a3446d769a2501ee558bda54146bef507e78.tar.bz2
samba-5495a3446d769a2501ee558bda54146bef507e78.zip
namedbname.c: Fixed *nasty* bug that caused nmbd to spin and eat memory
and CPU whilst trying to become a master browser. Don't ask, you don't want to know :-). nameresp.c: Tidied formating of code. nameservresp.c: Added debug value of IP address that is rejecting our registration. jallison@whistle.com (This used to be commit c0bae276a99211c0c7149a5e4e801706870074fd)
Diffstat (limited to 'source3/nameresp.c')
-rw-r--r--source3/nameresp.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/source3/nameresp.c b/source3/nameresp.c
index 3128b00ac5..f2b3ba167a 100644
--- a/source3/nameresp.c
+++ b/source3/nameresp.c
@@ -210,33 +210,33 @@ void expire_netbios_response_entries(time_t t)
for (n = d->responselist; n; n = nextn)
{
- nextn = n->next;
+ nextn = n->next;
if (n->repeat_time <= t)
- {
- if (n->repeat_count > 0)
- {
- /* resend the entry */
- initiate_netbios_packet(&n->response_id, n->fd, n->quest_type,
- n->name.name, n->name.name_type,
- n->nb_flags, n->bcast, n->recurse, n->send_ip);
-
- n->repeat_time += n->repeat_interval; /* XXXX ms needed */
- n->repeat_count--;
-
- }
- else
- {
- DEBUG(4,("timeout response %d for %s %s\n",
- n->response_id, namestr(&n->name),
- inet_ntoa(n->send_ip)));
-
- dead_netbios_entry (d,n); /* process the non-response */
- remove_response_record(d,n); /* remove the non-response */
-
- continue;
- }
- }
+ {
+ if (n->repeat_count > 0)
+ {
+ /* resend the entry */
+ initiate_netbios_packet(&n->response_id, n->fd, n->quest_type,
+ n->name.name, n->name.name_type,
+ n->nb_flags, n->bcast, n->recurse, n->send_ip);
+
+ n->repeat_time += n->repeat_interval; /* XXXX ms needed */
+ n->repeat_count--;
+
+ }
+ else
+ {
+ DEBUG(4,("timeout response %d for %s %s\n",
+ n->response_id, namestr(&n->name),
+ inet_ntoa(n->send_ip)));
+
+ dead_netbios_entry(d,n); /* process the non-response */
+ remove_response_record(d,n); /* remove the non-response */
+
+ continue;
+ }
+ }
}
}
}