2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 21:38:05 +00:00

zero out nss->handle after it has been freed to make sure we cannot free it twice

This commit is contained in:
Todd C. Miller 2017-03-21 09:52:51 -06:00
parent c4e703696a
commit a1322d7dd9

View File

@ -481,6 +481,7 @@ sudo_sss_close(struct sudo_nss *nss)
handle = nss->handle; handle = nss->handle;
sudo_dso_unload(handle->ssslib); sudo_dso_unload(handle->ssslib);
free(nss->handle); free(nss->handle);
nss->handle = NULL;
} }
debug_return_int(0); debug_return_int(0);
} }