This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to branch 389-ds-base-1.3.8 in repository 389-ds-base.
from 6bc2228 bump version to 1.3.8.8 new de03e74 Ticket 49932 - Crash in delete_passwdPolicy when persistent search connections are terminated unexpectedly
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: ldap/servers/slapd/pblock.c | 2 ++ 1 file changed, 2 insertions(+)
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.3.8 in repository 389-ds-base.
commit de03e7456108de3f3d28c6a5d33926525b70557f Author: Mark Reynolds mreynolds@redhat.com Date: Thu Aug 30 14:28:10 2018 -0400
Ticket 49932 - Crash in delete_passwdPolicy when persistent search connections are terminated unexpectedly
Bug Description: We clone a pblock in a psearch search, and under certain error conditions this pblock is freed, but it frees the password policy struct which can lead to a double free when the original pblock is destroyed.
Fix Description: During the cloning, set the pwppolicy struct to NULL so the clone allocates its own policy if needed
https://pagure.io/389-ds-base/issue/49932
Reviewed by: ?
(cherry picked from commit 78fc627accacfa4061ce48977e22301f81ea8d73) --- ldap/servers/slapd/pblock.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/ldap/servers/slapd/pblock.c b/ldap/servers/slapd/pblock.c index 4514c3c..bc18a7b 100644 --- a/ldap/servers/slapd/pblock.c +++ b/ldap/servers/slapd/pblock.c @@ -322,6 +322,8 @@ slapi_pblock_clone(Slapi_PBlock *pb) if (pb->pb_intop != NULL) { _pblock_assert_pb_intop(new_pb); *(new_pb->pb_intop) = *(pb->pb_intop); + /* set pwdpolicy to NULL so this clone allocates its own policy */ + new_pb->pb_intop->pwdpolicy = NULL; } if (pb->pb_intplugin != NULL) { _pblock_assert_pb_intplugin(new_pb);
389-commits@lists.fedoraproject.org