summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common/freelist.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-11-30 03:25:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:40 -0500
commit9da0c020571d901569e552224bfedd8bedbf43ba (patch)
tree1ce26528d9962082dacecaaafb5fe5f437300d0a /source4/lib/tdb/common/freelist.c
parent50821ebea329e2a2b719aca153d4af6cb2bf7f79 (diff)
downloadsamba-9da0c020571d901569e552224bfedd8bedbf43ba.tar.gz
samba-9da0c020571d901569e552224bfedd8bedbf43ba.tar.bz2
samba-9da0c020571d901569e552224bfedd8bedbf43ba.zip
r19960: Add code to check for loops in the free list.
Should help us validate tdb's against corruption. Jeremy. (This used to be commit bd0710fa09799cb496b1f9f365c57c3b542445f3)
Diffstat (limited to 'source4/lib/tdb/common/freelist.c')
-rw-r--r--source4/lib/tdb/common/freelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/tdb/common/freelist.c b/source4/lib/tdb/common/freelist.c
index 9d1ae59801..0efe47f879 100644
--- a/source4/lib/tdb/common/freelist.c
+++ b/source4/lib/tdb/common/freelist.c
@@ -29,7 +29,7 @@
#include "tdb_private.h"
/* read a freelist record and check for simple errors */
-static int rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
+int rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
{
if (tdb->methods->tdb_read(tdb, off, rec, sizeof(*rec),DOCONV()) == -1)
return -1;