Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-17 21:44:11 +0400
committerFelix Fietkau <nbd@openwrt.org>2011-08-17 21:44:11 +0400
commit1d3e4ccb6ae544dfc75227434c42b1ee74b86d4f (patch)
tree0b6dafb8aadbb6cf19707594c504a96b751a99ff /blobmsg.c
parentf1a44355bd432964d13ab3a2bb2c5f5b0ef9dfcb (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blobmsg.c b/blobmsg.c
index 15dc750..3079dca 100644
--- a/blobmsg.c
+++ b/blobmsg.c
@@ -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;