From ef918710c02166c289442bd0a8b548da802dd36b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 21 Apr 2014 12:02:30 +0200 Subject: [PATCH] blob: fix handling of custom validator callback https://dev.openwrt.org/ticket/15638 Signed-off-by: Felix Fietkau --- blob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blob.c b/blob.c index 2da7cac..9b721d1 100644 --- a/blob.c +++ b/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; } -- 2.25.1