X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Fcheck.c;h=c741cef3316ee36d21a4b4b0926e697b5e8ba317;hp=49a21c1883afee5a138120a96551af434dc14c20;hb=426c8dc977d0fb46286042f7072d86bc053836a1;hpb=fdf3c148052f30d10e8c72fbdbdaf67d4a51b11e diff --git a/ccan/tdb/check.c b/ccan/tdb/check.c index 49a21c18..c741cef3 100644 --- a/ccan/tdb/check.c +++ b/ccan/tdb/check.c @@ -39,7 +39,7 @@ static bool tdb_check_header(struct tdb_context *tdb, tdb_off_t *recovery) if (hdr.version != TDB_VERSION) goto corrupt; - if (hdr.rwlocks != 0) + if (hdr.hashcheck != hashcheck(tdb)) goto corrupt; if (hdr.hash_size == 0)