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 {
int skip = -1;
int lastRes = -1;
if (!clientSideSort) {
skip = startIndex;
lastRes = startIndex + numResults;
if (startIndex != -1) {
skip = startIndex;
}
if (numResults != -1) {
lastRes = startIndex + numResults;
}
}
byte[] cookie;
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