mayorga / 389-ds-base

Forked from 389-ds-base 7 years ago
Clone

a6532aa Ticket 47686 - removing chaining database links trigger valgrind read errors

1 file Authored by mreynolds 8 years ago, Committed by nhosoi 8 years ago,
    Ticket 47686 - removing chaining database links trigger valgrind read errors
    
    Bug Description:  Plugins that remove their dse callback from the dse callback
                      function lead to invalid reads in dse_call_callback().
    
    Fix Description:  In dse_call_callback(), save the pointers to the next callback,
                      and its plugin, before we call the callback function.  So in
                      case the callback function removes itself, we are not accessing
                      the freed callback pointer later on.
    
    https://fedorahosted.org/389/ticket/47686
    
    Reviewed by: nhosoi(Thanks!)
    
    (cherry picked from commit a799c4670f2e6f6be1fc9a2828dc4a0f738d3021)
    (cherry picked from commit 29c669e43e16611a290e1c82dfdcf5b51903319e)
    
        
file modified
+8 -5