X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fsummary.c;h=8c611c3a04a8c14966d188ec047d68a152f0e1a3;hp=61d7689749caa6a37b8883439d4ba7c4bcbc524a;hb=91505ce279ed86e2575f7f69091638e10659f462;hpb=1d4d21dfb5ac43274afc125f132d196ce07f3177 diff --git a/ccan/tdb2/summary.c b/ccan/tdb2/summary.c index 61d76897..8c611c3a 100644 --- a/ccan/tdb2/summary.c +++ b/ccan/tdb2/summary.c @@ -113,8 +113,12 @@ static bool summarize(struct tdb_context *tdb, + rec_extra_padding(&p->u); tally_add(chains, 1); tally_add(extra, rec_extra_padding(&p->u)); - } else + } else { len = dead_space(tdb, off); + if (TDB_OFF_IS_ERR(len)) { + return false; + } + } tdb_access_release(tdb, p); } if (unc)