projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1a4435
)
fix a bug in blobmsg_parse
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 17 Aug 2011 17:44:11 +0000
(10:44 -0700)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 17 Aug 2011 17:44:11 +0000
(10:44 -0700)
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
patch
|
blob
|
history
diff --git
a/blobmsg.c
b/blobmsg.c
index 15dc75004d647cdbdef0b851f6059120faae3daf..3079dcacb24a135e01c3b1bfed7e0d500779cfed 100644
(file)
--- 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;