close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23465 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -157,6 +157,7 @@ read_key(ENGINE *engine, const char *rsa_key)
|
|||||||
f = fopen(rsa_key, "r");
|
f = fopen(rsa_key, "r");
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
err(1, "could not open file %s", rsa_key);
|
err(1, "could not open file %s", rsa_key);
|
||||||
|
rk_cloexec_file(f);
|
||||||
|
|
||||||
size = fread(buf, 1, sizeof(buf), f);
|
size = fread(buf, 1, sizeof(buf), f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Reference in New Issue
Block a user