From 166d70eba30a4b2773620f7cd9f0b84307b25472 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Thu, 4 Jul 1996 19:41:16 +0000 Subject: [PATCH] namebrowse.c was using variable work uninitialised. remkproto'd proto.h lkcl --- source/include/proto.h | 3 +++ source/namebrowse.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/source/include/proto.h b/source/include/proto.h index fa04e284d34..6f92de8586a 100644 --- a/source/include/proto.h +++ b/source/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/source/namebrowse.c b/source/namebrowse.c index 31ee9347ec5..4b3e691ce04 100644 --- a/source/namebrowse.c +++ b/source/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)) {