Commit 63031c25 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Fixed issue where no results were returned when all results requested.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10040 b35dd754-fafc-0310-a699-88a17e54d16e
parent 794fc5e7
...@@ -1519,8 +1519,12 @@ public class LdapManager { ...@@ -1519,8 +1519,12 @@ public class LdapManager {
int skip = -1; int skip = -1;
int lastRes = -1; int lastRes = -1;
if (!clientSideSort) { if (!clientSideSort) {
skip = startIndex; if (startIndex != -1) {
lastRes = startIndex + numResults; skip = startIndex;
}
if (numResults != -1) {
lastRes = startIndex + numResults;
}
} }
byte[] cookie; byte[] cookie;
int count = 0; int count = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment