]> granicus.if.org Git - sudo/commitdiff
zero out nss->handle after it has been freed to make sure we cannot free it twice
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 21 Mar 2017 15:52:51 +0000 (09:52 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 21 Mar 2017 15:52:51 +0000 (09:52 -0600)
plugins/sudoers/sssd.c

index c6725cfa8bd41e46ecb1b4499f67fcaa4cfd2563..195748224cbb7a36dcc52b6ee455bca7472fab0d 100644 (file)
@@ -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);
 }