diff options
author | Darren Tucker <dtucker@dtucker.net> | 2023-03-08 07:25:37 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2023-03-08 07:26:51 +0100 |
commit | a76085bda883c2104afb33ab0334eca190927362 (patch) | |
tree | 42351b7db33a6f48da29f3b73c066d65a77e3f3f /openbsd-compat/bsd-getentropy.c | |
parent | upstream: use RSA/SHA256 when testing usability of private key in (diff) | |
download | openssh-a76085bda883c2104afb33ab0334eca190927362.tar.xz openssh-a76085bda883c2104afb33ab0334eca190927362.zip |
Extra brackets to prevent warning.
Diffstat (limited to 'openbsd-compat/bsd-getentropy.c')
-rw-r--r-- | openbsd-compat/bsd-getentropy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-getentropy.c b/openbsd-compat/bsd-getentropy.c index 554dfad70..0231e066c 100644 --- a/openbsd-compat/bsd-getentropy.c +++ b/openbsd-compat/bsd-getentropy.c @@ -51,7 +51,7 @@ _ssh_compat_getentropy(void *s, size_t len) size_t o = 0; #ifdef HAVE_GETENTROPY - if (r = getentropy(s, len) == 0) + if ((r = getentropy(s, len)) == 0) return 0; #endif /* HAVE_GETENTROPY */ #ifdef HAVE_GETRANDOM |