Skip to content

Commit

Permalink
Added config check for coroutine_stack_size (yandex#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-maltsev committed Jan 11, 2023
1 parent 76ea5f7 commit 3afc368
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sources/config_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3afc368

Please sign in to comment.