From: Martin Mares Date: Fri, 16 Jul 2004 20:22:53 +0000 (+0000) Subject: Buckets of unknown format should be skipped properly, otherwise X-Git-Tag: holmes-import~934 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fdab66fd87e56b32a7172abb2899c6eca7cb5e03;p=libucw.git Buckets of unknown format should be skipped properly, otherwise bucket fetching can become confused. --- 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; }