]> mj.ucw.cz Git - libucw.git/commitdiff
Buckets of unknown format should be skipped properly, otherwise
authorMartin Mares <mj@ucw.cz>
Fri, 16 Jul 2004 20:22:53 +0000 (20:22 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 16 Jul 2004 20:22:53 +0000 (20:22 +0000)
bucket fetching can become confused.

lib/buck2obj.c

index e90ff875447eead2125b08e7d8624804df20a612..cce821dbde858e7c3f9e9021a85227d52f960113 100644 (file)
@@ -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;
 }