uuidd: remove unnecessary bulk request size limit
Limiting random query to 1000 uuid's was pointless when the next line will further restrict upper limit to 63 entries. The 63 entries is what fits to the uuidd communication buffer with the header. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
b491161819
commit
0453925535
|
@ -530,8 +530,6 @@ static void server_loop(const char *socket_path, const char *pidfile_path,
|
|||
case UUIDD_OP_BULK_RANDOM_UUID:
|
||||
if (num < 0)
|
||||
num = 1;
|
||||
if (num > 1000)
|
||||
num = 1000;
|
||||
if ((sizeof(reply_buf) - sizeof(num)) < (size_t) (sizeof(uu) * num))
|
||||
num = (sizeof(reply_buf) - sizeof(num)) / sizeof(uu);
|
||||
__uuid_generate_random((unsigned char *) reply_buf +
|
||||
|
|
Loading…
Reference in New Issue