1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

namebrowse.c was using variable work uninitialised.

remkproto'd proto.h

lkcl
This commit is contained in:
Samba Release Account 0001-01-01 00:00:00 +00:00
parent 7719fb0652
commit 166d70eba3
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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)) {