summaryrefslogtreecommitdiff
path: root/src/libstrongswan/plugins/random/random_plugin.c
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2014-07-11 07:23:31 +0200
committerYves-Alexis Perez <corsac@debian.org>2014-07-11 07:23:31 +0200
commit113920a63557a9497e6fb8d7efd60e2fcde1df09 (patch)
tree7ea97040bf40a91ae0523ca9d580edad42c77917 /src/libstrongswan/plugins/random/random_plugin.c
parentb6869973db5f522dc9e2c20155ffd6e32152f197 (diff)
parent81c63b0eed39432878f78727f60a1e7499645199 (diff)
downloadvyos-strongswan-113920a63557a9497e6fb8d7efd60e2fcde1df09.tar.gz
vyos-strongswan-113920a63557a9497e6fb8d7efd60e2fcde1df09.zip
Merge tag 'upstream/5.2.0'
Upstream version 5.2.0
Diffstat (limited to 'src/libstrongswan/plugins/random/random_plugin.c')
-rw-r--r--src/libstrongswan/plugins/random/random_plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/random/random_plugin.c b/src/libstrongswan/plugins/random/random_plugin.c
index 1f1079240..e159751be 100644
--- a/src/libstrongswan/plugins/random/random_plugin.c
+++ b/src/libstrongswan/plugins/random/random_plugin.c
@@ -89,6 +89,11 @@ static bool open_dev(char *file, int *fd)
DBG1(DBG_LIB, "opening \"%s\" failed: %s", file, strerror(errno));
return FALSE;
}
+ if (fcntl(*fd, F_SETFD, FD_CLOEXEC) == -1)
+ {
+ DBG1(DBG_LIB, "setting FD_CLOEXEC for \"%s\" failed: %s",
+ file, strerror(errno));
+ }
return TRUE;
}