diff --git a/bbfdmd/ubus/bbfdmd b/bbfdmd/ubus/bbfdmd new file mode 100755 index 00000000..8e9c03aa Binary files /dev/null and b/bbfdmd/ubus/bbfdmd differ diff --git a/bbfdmd/ubus/get.c b/bbfdmd/ubus/get.c index 515775a4..06056bbb 100644 --- a/bbfdmd/ubus/get.c +++ b/bbfdmd/ubus/get.c @@ -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;