[openssh-commits] [openssh] 01/03: Fix ifdefs around get_random_bytes_prngd.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jul 2 15:53:55 AEST 2021


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

dtucker pushed a commit to branch master
in repository openssh.

commit f841fc9c8c7568a3b5d84a4cc0cefacb7dbc16b9
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Jul 2 15:20:32 2021 +1000

    Fix ifdefs around get_random_bytes_prngd.
    
    get_random_bytes_prngd() is used if either of PRNGD_PORT or PRNGD_SOCKET
    are defined, so adjust ifdef accordingly.
---
 openbsd-compat/port-prngd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbsd-compat/port-prngd.c b/openbsd-compat/port-prngd.c
index 4c88b4b6..6afa8f91 100644
--- a/openbsd-compat/port-prngd.c
+++ b/openbsd-compat/port-prngd.c
@@ -44,7 +44,7 @@
 #include "misc.h"
 #include "log.h"
 
-#ifdef PRNGD_SOCKET
+#if defined(PRNGD_PORT) || defined(PRNGD_SOCKET)
 /*
  * EGD/PRNGD interface.
  *
@@ -145,7 +145,7 @@ done:
 		close(fd);
 	return rval;
 }
-#endif /* PRNGD_SOCKET */
+#endif /* PRNGD_PORT || PRNGD_SOCKET */
 
 int
 seed_from_prngd(unsigned char *buf, size_t bytes)

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


More information about the openssh-commits mailing list