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

Authored and Committed by mreynolds 7 months 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: ?
    
        
file modified
+2 -0