From: Felix Fietkau Date: Wed, 17 Aug 2011 17:44:11 +0000 (-0700) Subject: fix a bug in blobmsg_parse X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=1d3e4ccb6ae544dfc75227434c42b1ee74b86d4f;ds=sidebyside 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) --- 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;