tdb2: careful on wrap.
[ccan] / ccan / tdb2 / check.c
index 238a5b3a4659ef1fd6b37a6ed764135deeb364cc..ecd6c13c5394bc97e2b4e923cf3bdc2ca5110fc2 100644 (file)
@@ -497,8 +497,8 @@ static enum TDB_ERROR check_free(struct tdb_context *tdb,
 
        }
 
 
        }
 
-       ecode = tdb->tdb2.io->oob(tdb, off
-                                 frec_len(frec)
+       ecode = tdb->tdb2.io->oob(tdb, off,
+                                 frec_len(frec)
                                  + sizeof(struct tdb_used_record),
                                  false);
        if (ecode != TDB_SUCCESS) {
                                  + sizeof(struct tdb_used_record),
                                  false);
        if (ecode != TDB_SUCCESS) {