https://bugs.openldap.org/show_bug.cgi?id=10023
--- Comment #9 from ipuleston@sonicwall.com ipuleston@sonicwall.com --- (In reply to Howard Chu from comment #5)
Please supply an actual diff with your proposed fix, thanks.
I've attached patches for both fix options.