[openssh-commits] [openssh] 01/01: Add missing bracket in EGD seeding code.

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Jul 6 12:07:06 AEST 2019


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

dtucker pushed a commit to branch master
in repository openssh.

commit 01a1e21cd55d99293c8ff8ed7c590f2ee440da43
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sat Jul 6 12:00:41 2019 +1000

    Add missing bracket in EGD seeding code.
    
    When configured --with-prngd-socket the code had a missing bracket after
    an API change.  Fix that and a couple of warnings.  bz#3032 , from
    ole.weidner at protonmail.ch
---
 entropy.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/entropy.c b/entropy.c
index 31a7f1c3..5c6594ac 100644
--- a/entropy.c
+++ b/entropy.c
@@ -201,14 +201,15 @@ rexec_send_rng_seed(struct sshbuf *m)
 void
 rexec_recv_rng_seed(struct sshbuf *m)
 {
-	u_char *buf = NULL;
+	const u_char *buf = NULL;
 	size_t len = 0;
 	int r;
 
-	if ((r = sshbuf_get_string_direct(m, &buf, &len)) != 0
+	if ((r = sshbuf_get_string_direct(m, &buf, &len)) != 0)
 		fatal("%s: buffer error: %s", __func__, ssh_err(r));
 
-	debug3("rexec_recv_rng_seed: seeding rng with %u bytes", len);
+	debug3("rexec_recv_rng_seed: seeding rng with %lu bytes",
+	    (unsigned long)len);
 	RAND_add(buf, len, len);
 }
 #endif /* OPENSSL_PRNG_ONLY */

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


More information about the openssh-commits mailing list