summaryrefslogtreecommitdiff
path: root/source3/namedbname.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/namedbname.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/namedbname.c')
-rw-r--r--source3/namedbname.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c
index 5c514c263f..2e0afc1497 100644
--- a/source3/namedbname.c
+++ b/source3/namedbname.c
@@ -421,6 +421,12 @@ struct name_record *add_netbios_entry(struct subnet_record *d,
/* add the name to the WINS list if the name comes from a directed query */
search |= wins ? FIND_WINS : FIND_LOCAL;
+
+ /* If it's a local search then we need to set the subnet
+ we are looking at. */
+ if(search & FIND_LOCAL)
+ found_subnet = d;
+
/* search for SELF names only */
search |= self ? FIND_SELF : 0;