diff --git a/src/libs/zbxcfg/cfg.c b/src/libs/zbxcfg/cfg.c index faa8d1b080f..5623e5ae046 100644 --- a/src/libs/zbxcfg/cfg.c +++ b/src/libs/zbxcfg/cfg.c @@ -473,6 +473,10 @@ static int __parse_cfg_file(const char *cfg_file, zbx_cfg_line_t *cfg, int level if (NULL == (value = strchr(line, '='))) goto non_key_value; + /* disallow '==' */ + if (value[1] == '=') + goto non_key_value; + *value++ = '\0'; zbx_rtrim(parameter, ZBX_CFG_RTRIM_CHARS);