fix: uncorrect work of isSpecialValueName (#84)

This commit is contained in:
Корней Гедерт 2024-10-10 20:41:25 +04:00 committed by GitHub
parent a4e3418887
commit 3d461644fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,8 +215,8 @@ static bool isSpecialValueName(const std::string &str)
(str == "**delvals.") ||
(str == "**deletekeys") ||
(str == "**securekey") ||
(str.length() >= 6 && strncmp(str.c_str(), "**del.", 6)) ||
(str.length() >= 7 && strncmp(str.c_str(), "**soft.", 7));
(str.length() >= 6 && strncmp(str.c_str(), "**del.", 6) == 0) ||
(str.length() >= 7 && strncmp(str.c_str(), "**soft.", 7) == 0);
}
std::vector<std::string> PolRegistrySource::getNonSpecialValueNames(const std::string &key) const