https://bugs.openldap.org/show_bug.cgi?id=9803
--- Comment #6 from Ondřej Kuzník ondra@mistotebe.net --- On Fri, Mar 04, 2022 at 02:37:03AM +0000, openldap-its@openldap.org wrote:
read1msg: ld 0x7fff8c003ef0 msgid 7 all 1 (ret=-2 occurring)
Are you sure the server is responding with a valid LDAP message? If this[0] branch is taken, I could see lc->lconn_ber not being cleared which might lead to the assert you're talking about.
If that's the case, you can check that putting ber_free( ber, 1 ); lc->lconn_ber = NULL; at that point should make the assert go away.
[0]. https://git.openldap.org/openldap/openldap/-/blob/master/libraries/libldap/r...