1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

r13037: fill in the corrent maxVersion in table replies

metze
This commit is contained in:
Stefan Metzmacher 2006-01-19 16:34:05 +00:00 committed by Gerald (Jerry) Carter
parent cf669e4b2a
commit 165538245b

View File

@ -236,6 +236,14 @@ NTSTATUS wreplsrv_fill_wrepl_table(struct wreplsrv_service *service,
NT_STATUS_HAVE_NO_MEMORY(table_out->partners);
for (cur = service->table; cur && i < table_out->partner_count; cur = cur->next) {
/*
* if it's our local entry
* update the max version
*/
if (cur == service->owner) {
cur->owner.max_version = winsdb_get_maxVersion(service->wins_db);
}
if (full_table) {
table_out->partners[i] = cur->owner;
i++;