From 1d3e4ccb6ae544dfc75227434c42b1ee74b86d4f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 17 Aug 2011 10:44:11 -0700 Subject: [PATCH] fix a bug in blobmsg_parse MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit a second entry that has the same length as an existing found entry would abort the parse loop (reported by Stefan Mächler) --- blobmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0