390b8bd 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!!)