diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-17 21:44:11 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-08-17 21:44:11 +0400 |
commit | 1d3e4ccb6ae544dfc75227434c42b1ee74b86d4f (patch) | |
tree | 0b6dafb8aadbb6cf19707594c504a96b751a99ff /blobmsg.c | |
parent | f1a44355bd432964d13ab3a2bb2c5f5b0ef9dfcb (diff) |
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)
Diffstat (limited to 'blobmsg.c')
-rw-r--r-- | blobmsg.c | 2 |
1 files changed, 1 insertions, 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; |