mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-26 07:15:36 +02:00
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
This commit is contained in:
parent
e187b1d460
commit
01a1e21cd5
@ -201,14 +201,15 @@ rexec_send_rng_seed(struct sshbuf *m)
|
|||||||
void
|
void
|
||||||
rexec_recv_rng_seed(struct sshbuf *m)
|
rexec_recv_rng_seed(struct sshbuf *m)
|
||||||
{
|
{
|
||||||
u_char *buf = NULL;
|
const u_char *buf = NULL;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
int r;
|
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));
|
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);
|
RAND_add(buf, len, len);
|
||||||
}
|
}
|
||||||
#endif /* OPENSSL_PRNG_ONLY */
|
#endif /* OPENSSL_PRNG_ONLY */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user