https://bugs.openldap.org/show_bug.cgi?id=10229
--- Comment #6 from Nadezhda Ivanova nivanova@symas.com --- This patch has been manually tested to the best of our ability, but we were planning to eventually implement an automatic test that guarantees that there are multiple msgids in the chain to retrieve with a single ldap_result call. Asyncmeta was adjusted to not use MSG_RECEIVED without any noticeable performance issues, and since writing such a test was not trivial, we postponed it. At this point there is no code in OpenLDAP that uses this particular scenario, and to the best of our knowledge, the patch works and is safe. It may be a good idea to implement the test when we decide to merge it in an official release.