From fdab66fd87e56b32a7172abb2899c6eca7cb5e03 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 16 Jul 2004 20:22:53 +0000 Subject: [PATCH] Buckets of unknown format should be skipped properly, otherwise bucket fetching can become confused. --- lib/buck2obj.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/buck2obj.c b/lib/buck2obj.c index e90ff875..cce821db 100644 --- a/lib/buck2obj.c +++ b/lib/buck2obj.c @@ -165,7 +165,10 @@ buck2obj_parse(struct buck2obj_buf *buf, uns buck_type, uns buck_len, struct fas bdirect_read_commit_modified(body, ptr); } else - RET_ERR(EINVAL); + { + bskip(body, buck_len); + RET_ERR(EINVAL); + } return 0; } -- 2.39.2