bbfdm: Fix instance wildcard processing

This commit is contained in:
Amin Ben Romdhane 2023-08-01 12:50:52 +00:00
parent 19c8a77aee
commit 69b702e57c
2 changed files with 3 additions and 2 deletions

BIN
bbfdmd/ubus/bbfdmd Executable file

Binary file not shown.

View file

@ -73,8 +73,9 @@ static bool get_base_path(const char *query_path, char *base_path)
}
break;
case '*':
if (query_path[i - 1] != '.' &&
query_path[i + 1] != '.')
if (query_path[i - 1] != '.' ||
query_path[i + 1] != '.' ||
query_path[i + 2] == 0)
return false;
found = true;
break;