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:
Sami Kerola 2020-11-21 21:24:10 +00:00
parent b491161819
commit 0453925535
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 0 additions and 2 deletions

View File

@ -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 +