Skip to content

Commit

Permalink
util-get-random-bytes: Close arc4random conditional at end of function.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
besser82 committed Jan 24, 2025
1 parent fe5b8b8 commit ca15167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util-get-random-bytes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

0 comments on commit ca15167

Please sign in to comment.