From: Felix Fietkau Date: Mon, 21 Apr 2014 10:02:30 +0000 (+0200) Subject: blob: fix handling of custom validator callback X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef918710c02166c289442bd0a8b548da802dd36b;p=oweals%2Flibubox.git blob: fix handling of custom validator callback https://dev.openwrt.org/ticket/15638 Signed-off-by: Felix Fietkau --- 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; }