summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@sernet.de>2008-03-20 13:26:14 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:50 +0100
commitc4402e3fde823a1984cc10f390d09c0ef9c8af0d (patch)
treecc590a509170dca413697aa0fb3bb7c16c27830d /source4
parent780bc13736f264435ba9af6dda84235ea217d526 (diff)
downloadsamba-c4402e3fde823a1984cc10f390d09c0ef9c8af0d.tar.gz
samba-c4402e3fde823a1984cc10f390d09c0ef9c8af0d.tar.xz
samba-c4402e3fde823a1984cc10f390d09c0ef9c8af0d.zip
wrepl_server: use a local 'local_owner' variable to make the code more readable
metze (from samba4wins tree eba9a8ce0641a2984112f4e1473801fa449ed96d)
Diffstat (limited to 'source4')
-rw-r--r--source4/wrepl_server/wrepl_apply_records.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/wrepl_server/wrepl_apply_records.c b/source4/wrepl_server/wrepl_apply_records.c
index 380b77517fc..17777f4dcff 100644
--- a/source4/wrepl_server/wrepl_apply_records.c
+++ b/source4/wrepl_server/wrepl_apply_records.c
@@ -1191,6 +1191,7 @@ static NTSTATUS r_do_sgroup_merge(struct wreplsrv_partner *partner,
size_t len;
bool changed_old_addrs = false;
bool become_owner = true;
+ const char *local_owner = partner->service->wins_db->local_owner;
merge = talloc(mem_ctx, struct winsdb_record);
NT_STATUS_HAVE_NO_MEMORY(merge);
@@ -1265,7 +1266,7 @@ static NTSTATUS r_do_sgroup_merge(struct wreplsrv_partner *partner,
}
/* if we're the owner of the old record, we'll be the owner of the new one too */
- if (strcmp(rec->wins_owner, partner->service->wins_db->local_owner)==0) {
+ if (strcmp(rec->wins_owner, local_owner)==0) {
become_owner = true;
}