1
0
Эх сурвалжийг харах

Bug 623118 - Simplepaged results going in infinite loop
if a sub suffix exists in the domain

https://bugzilla.redhat.com/show_bug.cgi?id=623118

Description: When paging is done on a backend, and if there are
more sub backends to be searched and paged, simple paged code is
supposed to set the next backend to connection->c_current_be.
The setting was missing.

Noriko Hosoi 15 жил өмнө
parent
commit
b44e8f4f2f

+ 4 - 0
ldap/servers/slapd/opshared.c

@@ -574,6 +574,10 @@ op_shared_search (Slapi_PBlock *pb, int send_result)
           curr_search_count = -1;
         } else {
           curr_search_count = pnentries;
+          /* no more entries, but at least another backend */
+          if (pagedresults_set_current_be(pb->pb_conn, next_be) < 0) {
+              goto free_and_return;
+          }
         }
         estimate = 0;
       } else {