https://bugs.openldap.org/show_bug.cgi?id=10060
--- Comment #4 from Ondřej Kuzník ondra@mistotebe.net ---
ldap_result rc" (101 vs 100, it should be 101 in both cases)
BTW this should be LDAP_RES_SEARCH_ENTRY (100) in both cases as outlined in the draft - as that's the first message in result.