util-get-random-bytes: Close arc4random conditional at end of function.
authorBjörn Esser <[email protected]>
Fri, 24 Jan 2025 17:52:01 +0000 (24 18:52 +0100)
committerBjö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

index 79816db..b8becd9 100644 (file)
@@ -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 */
 }