blob: fix handling of custom validator callback
https://dev.openwrt.org/ticket/15638 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
c4b9eb1442
commit
ef918710c0
1 changed files with 1 additions and 1 deletions
2
blob.c
2
blob.c
|
@ -236,7 +236,7 @@ blob_parse(struct blob_attr *attr, struct blob_attr **data, const struct blob_at
|
|||
if (info[id].maxlen && len > info[id].maxlen)
|
||||
continue;
|
||||
|
||||
if (info[id].validate && !info[id].validate(&info[id], attr))
|
||||
if (info[id].validate && !info[id].validate(&info[id], pos))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue