From: Darren Tucker Date: Thu, 17 Oct 2024 09:50:29 +0000 (+1100) Subject: Seed RNG when starting up sshd-auth. X-Git-Tag: V_10_0_P1~182 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67f684733f60f66479854a2867b953de731e71b2;p=thirdparty%2Fopenssh-portable.git 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. --- 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);