https://bugs.openldap.org/show_bug.cgi?id=10584
Issue ID: 10584 Summary: try_read1msg memory leak on Notice of Disconnection Product: OpenLDAP Version: 2.6.14 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: libraries Assignee: bugs@openldap.org Reporter: ondra@mistotebe.net Target Milestone: ---
When a ber is moved off lc->lconn_ber, try_read1msg has to either free it or attach it to an LDAPMessage. When NoD is received (specifically the is_nod branch), neither of those happens and ber is leaked.
Only affects callers who call `ldap_result(ld, msgid > 0, ...)` (i.e. who do not expect to handle it themselves).
Fix is coming.
https://bugs.openldap.org/show_bug.cgi?id=10584
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Assignee|bugs@openldap.org |ondra@mistotebe.net Ever confirmed|0 |1
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- https://git.openldap.org/openldap/openldap/-/merge_requests/917
https://bugs.openldap.org/show_bug.cgi?id=10584
--- Comment #2 from Howard Chu hyc@openldap.org --- Looks like this has been there since 2007, commit 4b75dd6be34fe885f3f2b67555489387746df059