7b8fc84 Ticket 48891 ns-slapd crashes during the shutdown after adding attribute with a matching rule

Authored and Committed by tbordaz 7 years ago
    Ticket 48891 ns-slapd crashes during the shutdown after adding attribute with a matching rule
    
    Bug Description:
        in https://fedorahosted.org/389/ticket/48872, plugin free is moved from plugin_closeall
        to be_cleanup.
        The problem is that in be_cleanup, it frees be_database that can be a common reference
        to the same be plugin (ldbm). It triggers a double free.
    
    Fix Description:
        Fix //fedorahosted.org/389/ticket/48872, frees plugin->plg_pwdstorageschemename
        only if the plugin is typed PWD_STORAGE_SCHEME. This part of the fix is ok.
        Reverting the plugin_free to be called in plugin_closeall.
    
    https://fedorahosted.org/389/ticket/48891
    
    Reviewed by: William Brown (Thanks William)
    
    Platforms tested: F23
    
    Flag Day: no
    
    Doc impact: no
    
        
file modified
+1 -1
file modified
+2 -5