]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-corrupt.c
tdb: put example hashes into header, so we notice incorrect hash_fn.
[ccan] / ccan / tdb / test / run-corrupt.c
index 067ac861e4913acef1964da692b88fe625d08159..bea7dbcdf490218e4cd8ab0a4983246f6fb8be13 100644 (file)
@@ -73,7 +73,8 @@ static void check_test(struct tdb_context *tdb)
        /* This is how many bytes we expect to be verifiable. */
        /* From the file header. */
        verifiable = strlen(TDB_MAGIC_FOOD) + 1
-               + 2 * sizeof(uint32_t) + 2 * sizeof(tdb_off_t);
+               + 2 * sizeof(uint32_t) + 2 * sizeof(tdb_off_t)
+               + 2 * sizeof(uint32_t);
        /* From the free list chain and hash chains. */
        verifiable += 3 * sizeof(tdb_off_t);
        /* From the record headers & tailer */