]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
auth: ldap - Fix potential crash at deinit main
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 12 Aug 2025 10:08:08 +0000 (13:08 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 12 Aug 2025 10:08:25 +0000 (13:08 +0300)
commitaab0f74c3be83a18f676d3b80d08e61818a8274f
tree28c40b23a1e5894832c43bd0899e8654296d4f07
parent1c459ce614233ec6ad6e229f75430e9753f39970
auth: ldap - Fix potential crash at deinit

Continuation of 5ff9a8686a29c423e1fcf90f2d36af521cef6f7d. It didn't fix
a situation where there were passdb requests still pending, because
passdb deinit only unreferenced db-ldap and then freed passdb settings.
Only after userdb deinit unreferenced db-ldap again did it try to abort
the ldap requests, but now the passdb settings were already NULL.
src/auth/db-ldap.c
src/auth/db-ldap.h
src/auth/passdb-ldap.c
src/auth/userdb-ldap.c