10213ef Do not keep allocating external groups on a long-lived context

1 file Authored by jhrozek 5 years ago, Committed by fidencio 5 years ago,
    Do not keep allocating external groups on a long-lived context
    
    The hash table with the external groups was never freed, so the
    server_mode->ext_groups context was growing over time.
    
    This patch keeps the new hash on the state if something failed, then
    frees the previous hash and finally steals the new hash onto the server
    mode.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3719
    
    Signed-off-by: Sumit Bose <sbose@redhat.com>
    Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>