adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

de03e74 Ticket 49932 - Crash in delete_passwdPolicy when persistent search connections are terminated unexpectedly

Authored and Committed by mreynolds 5 years ago
    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)
    
        
file modified
+2 -0