From a1322d7dd9ac45d55240b7bbe3ca7a266f28f0e4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 21 Mar 2017 09:52:51 -0600 Subject: [PATCH] zero out nss->handle after it has been freed to make sure we cannot free it twice --- plugins/sudoers/sssd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/sssd.c b/plugins/sudoers/sssd.c index c6725cfa8..195748224 100644 --- a/plugins/sudoers/sssd.c +++ b/plugins/sudoers/sssd.c @@ -481,6 +481,7 @@ sudo_sss_close(struct sudo_nss *nss) handle = nss->handle; sudo_dso_unload(handle->ssslib); free(nss->handle); + nss->handle = NULL; } debug_return_int(0); } -- 2.40.0