fix a bug in blobmsg_parse
a second entry that has the same length as an existing found entry would abort the parse loop (reported by Stefan Mächler)
This commit is contained in:
parent
f1a44355bd
commit
1d3e4ccb6a
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len,
|
|||
return -1;
|
||||
|
||||
if (tb[i])
|
||||
return -1;
|
||||
continue;
|
||||
|
||||
if (strcmp(policy[i].name, (char *) hdr->name) != 0)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue