b054e7d HBAC: Fix tevent hierarchy in ipa_hbac_rule_info_send()

1 file Authored by fidencio 4 years ago, Committed by jhrozek 4 years ago,
    HBAC: Fix tevent hierarchy in ipa_hbac_rule_info_send()
    
    The first thing a _send() function should o is call
    `tevent_req_create()` in order to create both the state and the request
    and then use the state as context for temporary data.
    
    Also, `tevent_req_create()` should be only function returning NULL from
    the _send function, while all the other calls should goto immediate and
    return the proper error, as they have a valid request.
    
    Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>