039d7b6 Ticket #48146 - async simple paged results issue

Authored and Committed by nhosoi 4 years ago
    Ticket #48146 - async simple paged results issue
    
    Description: Invalid index could cause Invalid read.
    
    https://fedorahosted.org/389/ticket/48146
    (cherry picked from commit 8e21bfbe4fcac79cf39e5c6b579c4bc88e05257e)
    (cherry picked from commit 644a116950d34bd11533a4426f6af6953865edf2)
    (cherry picked from commit 82020ad65cf1b1762a8e9eaaf1a9cd7bc7b709f1)