cgrzemba / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

a7a8b2d Ticket #48338 - SimplePagedResults -- abandon could happen between the abandon check and sending results

Authored and Committed by nhosoi 8 years ago
    Ticket #48338 - SimplePagedResults -- abandon could happen between the abandon check and sending results
    
    Description: An abandon request for a SimplePagedResults request could
    happened between the abandon check and the code for sending the search
    results.  The abandon frees the search results although sending result
    code still refers it.
    
    Fix description: The code (from getting search results through sending
    the search results) in op_shared_search is protected by c_mutex locking.
    
    https://fedorahosted.org/389/ticket/48338
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
    
    (cherry picked from commit 390b8bd9076e8976facc0858e60985d6b4fac05c)
    (cherry picked from commit 8f49d33d30fade7b579062414250a0ddb1a66c62)