s3: piddir creation fix part 2.
[ira/wip.git] / lib / tdb / common / freelist.c
index 927078a7aa5cec47b7d67ee44410d8dd007936f6..6358f64a04ab8db19693b05e6f84f282c44c348e 100644 (file)
@@ -56,7 +56,7 @@ int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct tdb_record
                           rec->magic, off));
                return -1;
        }
-       if (tdb->methods->tdb_oob(tdb, rec->next+sizeof(*rec), 0) != 0)
+       if (tdb->methods->tdb_oob(tdb, rec->nextsizeof(*rec), 0) != 0)
                return -1;
        return 0;
 }