1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

r11879: some fixes for the new ldb api

metze
(This used to be commit f5b672edc07586afcd6ab5eebeb8ae1247a2b4ed)
This commit is contained in:
Stefan Metzmacher 2005-11-23 12:19:38 +00:00 committed by Gerald (Jerry) Carter
parent e7d4f5555f
commit c222cef178

View File

@ -264,13 +264,13 @@ static NTSTATUS wreplsrv_in_send_request(struct wreplsrv_in_call *call)
}
/* sort the names before we send them */
qsort(names, ret, sizeof(struct wrepl_wins_name), (comparison_fn_t)wreplsrv_in_sort_wins_name);
qsort(names, res->count, sizeof(struct wrepl_wins_name), (comparison_fn_t)wreplsrv_in_sort_wins_name);
DEBUG(2,("WINSREPL:reply [%u] records owner[%s] min[%llu] max[%llu] to partner[%s]\n",
ret, owner_in->address, owner_in->min_version, owner_in->max_version,
res->count, owner_in->address, owner_in->min_version, owner_in->max_version,
call->wreplconn->partner->address));
reply_out->num_names = ret;
reply_out->num_names = res->count;
reply_out->names = names;
return NT_STATUS_OK;