summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-23 12:19:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:40 -0500
commitc222cef1781b88c2f9cb465dc4294629293cdbd2 (patch)
treece9d0f9ba983603f70ffe027b443eff6293ec7b7 /source4
parente7d4f5555fddd24a4bd09c56c89ec690c0bc2c85 (diff)
downloadsamba-c222cef1781b88c2f9cb465dc4294629293cdbd2.tar.gz
samba-c222cef1781b88c2f9cb465dc4294629293cdbd2.tar.bz2
samba-c222cef1781b88c2f9cb465dc4294629293cdbd2.zip
r11879: some fixes for the new ldb api
metze (This used to be commit f5b672edc07586afcd6ab5eebeb8ae1247a2b4ed)
Diffstat (limited to 'source4')
-rw-r--r--source4/wrepl_server/wrepl_in_call.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/wrepl_server/wrepl_in_call.c b/source4/wrepl_server/wrepl_in_call.c
index 38d0b72405..b3406c96ba 100644
--- a/source4/wrepl_server/wrepl_in_call.c
+++ b/source4/wrepl_server/wrepl_in_call.c
@@ -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;