SUPPORT-8941. Добавлена обязательность настройки main:cp_name

This commit is contained in:
alashkova 2025-02-25 11:22:54 +03:00
parent 051b555c61
commit 89289a3d81

View file

@ -77,6 +77,11 @@ main_conf_load(main_conf_t* conf, const char *filename, const conf_file_context_
goto error;
}
if (conf->cp_name[0] == '\0') {
LOG_ERROR(MAIN_CONF_SECTION ":" MAIN_CONF_KEY_CP_NAME " is required");
goto error;
}
conf->conf_file = copy_filename(filename);
if (NULL == conf->conf_file) {
LOG_ERROR("could not copy config filename, %s", filename);