Skip to content

Commit 932b673

Browse files
committed
Fix return value o f getentropy(2) version of lwan_getentropy()
1 parent d7be224 commit 932b673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/missing.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ long int lwan_getentropy(void *buffer, size_t buffer_len, int flags)
519519
(void)flags;
520520

521521
if (!getentropy(buffer, buffer_len))
522-
return buffer_len;
522+
return 0;
523523

524524
return lwan_getentropy_fallback(buffer, buffer_len);
525525
}

0 commit comments

Comments
 (0)