summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2024-10-17 11:50:29 +0200
committerDarren Tucker <dtucker@dtucker.net>2024-10-17 11:50:29 +0200
commit67f684733f60f66479854a2867b953de731e71b2 (patch)
tree14493d8c55bbe6494e2fc6139fbb0ac8898ec4a7
parentMacOS 12 runners are deprecated, replace with 15. (diff)
downloadopenssh-67f684733f60f66479854a2867b953de731e71b2.tar.xz
openssh-67f684733f60f66479854a2867b953de731e71b2.zip
Seed RNG when starting up sshd-auth.
Makes builds configured --without-openssl work again since otherwise the first use of the RNG comes after the sandbox init and it can't open /dev/random.
-rw-r--r--sshd-auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshd-auth.c b/sshd-auth.c
index 986052cd3..bb694dd4a 100644
--- a/sshd-auth.c
+++ b/sshd-auth.c
@@ -472,6 +472,8 @@ main(int ac, char **av)
saved_argv[i] = xstrdup(av[i]);
saved_argv[i] = NULL;
+ seed_rng();
+
#ifndef HAVE_SETPROCTITLE
/* Prepare for later setproctitle emulation */
compat_init_setproctitle(ac, av);