summaryrefslogtreecommitdiff
path: root/source3/nameannounce.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nameannounce.c')
-rw-r--r--source3/nameannounce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nameannounce.c b/source3/nameannounce.c
index 684ef41258..96641c2d77 100644
--- a/source3/nameannounce.c
+++ b/source3/nameannounce.c
@@ -383,7 +383,6 @@ void announce_master(time_t t)
for (d = FIRST_SUBNET; d; d = NEXT_SUBNET_EXCLUDING_WINS(d))
{
- struct work_record *work;
for (work = d->workgrouplist; work; work = work->next)
{
if (AM_MASTER(work))
@@ -437,9 +436,10 @@ workgroup %s\n", am_master, work->work_group));
/* We are the WINS server - query ourselves for the dmb name. */
struct nmb_name netb_name;
- struct subnet_record *d = 0;
struct name_record *nr = 0;
-
+
+ d = NULL;
+
make_nmb_name(&netb_name, name, type, scope);
if ((nr = find_name_search(&d, &netb_name, FIND_WINS, ipzero)) == 0)