libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit e42c783bb884dd7e9319236a3bcd3abb5819fce6
parent 19e1ed8355744dc2e0c6755e91de43ee335dea31
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 25 Sep 2023 21:13:17 +0200

-very theoretically, 0 would be OK, too

Diffstat:
Msrc/testcurl/test_digestauth2.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testcurl/test_digestauth2.c b/src/testcurl/test_digestauth2.c @@ -359,7 +359,7 @@ gen_good_rnd (void *rnd_buf, size_t rnd_buf_size) if (1) { const int urand_fd = open ("/dev/urandom", O_RDONLY); - if (0 < urand_fd) + if (0 <= urand_fd) { size_t pos = 0; do