Skip to content
Snippets Groups Projects
Commit 93aa12ef authored by Armin Luntzer's avatar Armin Luntzer
Browse files

sysctl: limit comparison to strlen of object name in sysset_find_obj()

parent 9779a54d
No related branches found
No related tags found
No related merge requests found
...@@ -512,7 +512,7 @@ struct sysobj *sysset_find_obj(struct sysset *sysset, const char *path) ...@@ -512,7 +512,7 @@ struct sysobj *sysset_find_obj(struct sysset *sysset, const char *path)
if (!sysobj_name(s)) if (!sysobj_name(s))
return ret; return ret;
if (strcmp(sysobj_name(s), token)) if (strncmp(sysobj_name(s), token, strlen(sysobj_name(s))))
continue; continue;
if (!s->child) if (!s->child)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment