[openssh-commits] [openssh] branch master updated: Seed RNG when starting up sshd-auth.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Oct 17 20:53:20 AEDT 2024


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 67f68473 Seed RNG when starting up sshd-auth.
67f68473 is described below

commit 67f684733f60f66479854a2867b953de731e71b2
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Thu Oct 17 20:50:29 2024 +1100

    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.
---
 sshd-auth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sshd-auth.c b/sshd-auth.c
index 986052cd..bb694dd4 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);

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list