Subject: Replication bulk import reports Invalid read/write
https://bugzilla.redhat.com/show_bug.cgi?id=539618
Files:
ldap/servers/plugins/replication/repl5.h
ldap/servers/plugins/replication/repl5_agmt.c
ldap/servers/plugins/replication/repl5_protocol.c
ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
Descriptions: When a protocol is freed by prot_free, prot_close
is supposed to have been called to stop the main thread
prot_thread_main. But, there was no mechanism for the freeing
thread whether the prot_thread_main has already quitted or not,
it could have released the Repl_Protocol even though it was
still being in use. This fix is adding a checking method.
The same test revealed ldbm_back_modrdn had a chance to access
a field of NULL entry structure.
Proposed Fix:
--> (https://bugzilla.redhat.com/attachment.cgi?id=395511)
git patch file