a5e8583 sudo: don't get stuck in rules and smart refresh when offline

1 file Authored by pbrezina 11 years ago, Committed by jhrozek 11 years ago,
    sudo: don't get stuck in rules and smart refresh when offline
    
    https://fedorahosted.org/sssd/ticket/1682
    
    The problem was in following code:
    if (ret != EOK || state->dp_error != DP_ERR_OK || state->error != EOK) {
        tevent_req_error(req, ret);
        return;
    }
    
    In situation when data provider error occurs (e.g. when offline),
    ret == EOK but dp_error != DP_ERR_OK and we take the true branch.
    This results in calling tevent_req_error(req, EOK).
    
    Unfortunately, with EOK tevent_req_error only returns false, but
    does not trigger callback and this tevent request hangs forever,
    because no tevent_req_done(req) is called.