mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 01:41:13 +01:00
Close more descriptors that can be open if the worker process for the given
resource is already running. Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
This commit is contained in:
parent
180b0814db
commit
5aa85abd1d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218370
@ -109,6 +109,12 @@ descriptors_cleanup(struct hast_resource *res)
|
|||||||
proto_close(tres->hr_remotein);
|
proto_close(tres->hr_remotein);
|
||||||
if (tres->hr_remoteout != NULL)
|
if (tres->hr_remoteout != NULL)
|
||||||
proto_close(tres->hr_remoteout);
|
proto_close(tres->hr_remoteout);
|
||||||
|
if (tres->hr_ctrl != NULL)
|
||||||
|
proto_close(tres->hr_ctrl);
|
||||||
|
if (tres->hr_event != NULL)
|
||||||
|
proto_close(tres->hr_event);
|
||||||
|
if (tres->hr_conn != NULL)
|
||||||
|
proto_close(tres->hr_conn);
|
||||||
}
|
}
|
||||||
if (cfg->hc_controlin != NULL)
|
if (cfg->hc_controlin != NULL)
|
||||||
proto_close(cfg->hc_controlin);
|
proto_close(cfg->hc_controlin);
|
||||||
|
Loading…
Reference in New Issue
Block a user