Fix empty allow/blocklists

This commit is contained in:
Will Toohey 2020-08-23 23:35:27 +10:00
parent 608f4984c2
commit dddd5529cb

View File

@ -29,7 +29,7 @@ void comma_separated_to_set(std::unordered_set<std::string> &dest, const char* a
const char* parse_list(const char* prefix, const char* arg, std::unordered_set<std::string> &dest) {
size_t prefix_len = strlen(prefix) + strlen("=");
if (strlen(arg) < prefix_len) {
if (strlen(arg) <= prefix_len) {
return NULL;
}