git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e3a76be
)
Fix segfault when sorting LDAP replies on the client.
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 11 Jan 2008 01:47:51 +0000
(12:47 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 11 Jan 2008 01:47:51 +0000
(12:47 +1100)
Andrew Bartlett
source/lib/ldb/tools/ldbsearch.c
patch
|
blob
|
history
diff --git
a/source/lib/ldb/tools/ldbsearch.c
b/source/lib/ldb/tools/ldbsearch.c
index c33cba1d77e725585ab18705d1922a1ffb065167..dba0549b4445e15c8e0f2a37cf97cc2ca4e7cb18 100644
(file)
--- a/
source/lib/ldb/tools/ldbsearch.c
+++ b/
source/lib/ldb/tools/ldbsearch.c
@@
-241,10
+241,10
@@
again:
if (sctx->pending)
goto again;
- if (sctx->sort &&
sctx->num_stored != 0
) {
+ if (sctx->sort &&
(sctx->num_stored != 0 || sctx->refs != 0)
) {
int i;
- ldb_qsort(sctx->store,
ret
, sizeof(struct ldb_message *),
+ ldb_qsort(sctx->store,
sctx->num_stored
, sizeof(struct ldb_message *),
ldb, (ldb_qsort_cmp_fn_t)do_compare_msg);
if (ret != 0) {