https://bugs.openldap.org/show_bug.cgi?id=10577
--- Comment #1 from Oleg thetrenshow157@gmail.com --- Created attachment 1196 --> https://bugs.openldap.org/attachment.cgi?id=1196&action=edit Patch to fix
The attached patch fixes the issue on the master branch.