From 3afc368572db40885495e7b9b9fd94f524a5c96e Mon Sep 17 00:00:00 2001 From: Ilya Maltsev Date: Wed, 11 Jan 2023 21:30:23 +0300 Subject: [PATCH] Added config check for coroutine_stack_size (#479) --- sources/config_reader.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sources/config_reader.c b/sources/config_reader.c index 9567bec60..ebe87681b 100644 --- a/sources/config_reader.c +++ b/sources/config_reader.c @@ -2325,6 +2325,14 @@ static int od_config_reader_parse(od_config_reader_t *reader, reader, &config->coroutine_stack_size)) { goto error; } +#ifdef LDAP_FOUND + if (config->coroutine_stack_size < 16) { + od_config_reader_error( + reader, NULL, + "coroutine_stack_size must be 16 or more when using LDAP auth"); + goto error; + } +#endif continue; /* listen */ case OD_LLISTEN: