repo.or.cz
/
libxcrypt.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
fe5b8b8
)
util-get-random-bytes: Close arc4random conditional at end of function.
author
Björn Esser
<
[email protected]
>
Fri, 24 Jan 2025 17:52:01 +0000
(24 18:52 +0100)
committer
Björn Esser
<
[email protected]
>
Fri, 24 Jan 2025 17:52:01 +0000
(24 18:52 +0100)
This should fix
CID 455357: Control flow issues (UNREACHABLE)
/lib/util-get-random-bytes.c: 152 in _crypt_get_random_bytes()
reported by Coverity Scan.
lib/util-get-random-bytes.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/util-get-random-bytes.c
b/lib/util-get-random-bytes.c
index
79816db
..
b8becd9
100644
(file)
--- a/
lib/util-get-random-bytes.c
+++ b/
lib/util-get-random-bytes.c
@@
-146,9
+146,9
@@
get_random_bytes(void *buf, size_t buflen)
}
}
#endif
-#endif /* no arc4random_buf */
/* if we get here, we're just completely hosed */
errno = ENOSYS;
return false;
+#endif /* no arc4random_buf */
}