summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-07-04 19:41:16 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-07-04 19:41:16 +0000
commit94b935c974b71a22a052ec7d78c4871a1a299bf6 (patch)
tree3d8b38f18dd53fed42229cad719cae84ecc1580e
parent7812ff08135318e74f5c286fe4773de8d1423969 (diff)
downloadsamba-94b935c974b71a22a052ec7d78c4871a1a299bf6.tar.gz
samba-94b935c974b71a22a052ec7d78c4871a1a299bf6.tar.bz2
samba-94b935c974b71a22a052ec7d78c4871a1a299bf6.zip
namebrowse.c was using variable work uninitialised.
remkproto'd proto.h lkcl (This used to be commit 166d70eba30a4b2773620f7cd9f0b84307b25472)
-rw-r--r--source3/include/proto.h3
-rw-r--r--source3/namebrowse.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index fa04e284d3..6f92de8586 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1,5 +1,8 @@
/* This file is automatically generated with "make proto". DO NOT EDIT */
+
+/*The following definitions come from - */
+
BOOL check_access(int snum);
BOOL allow_access(char *deny_list,char *allow_list,struct from_host *client);
BOOL fromhost(int sock,struct from_host *f);
diff --git a/source3/namebrowse.c b/source3/namebrowse.c
index 31ee9347ec..4b3e691ce0 100644
--- a/source3/namebrowse.c
+++ b/source3/namebrowse.c
@@ -167,6 +167,8 @@ static void start_sync_browse_entry(struct browse_cache_record *b)
if (!(d = find_subnet(b->ip))) return;
+ if (!(work = find_workgroupstruct(d, b->group, False))) return;
+
/* only sync if we are the master */
if (AM_MASTER(work)) {