e2ee9ff NSS: Use nss_ctx as memory context in set_netgr_lifetime()

1 file Authored by fidencio 6 years ago, Committed by lslebodn 6 years ago,
    NSS: Use nss_ctx as memory context in set_netgr_lifetime()
    
    We've noticed some crashes that happened because gctx is already freed,
    but the timeout handler is still called. In order to avoid that, let's
    remove the timeout handler when nss_ctx is freed at other places.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3523
    
    Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>