mirror of
https://github.com/vale981/libblobpack
synced 2025-03-05 09:51:42 -05:00
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
f73925d603
commit
ed949b020c
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…
Add table
Reference in a new issue