git.samba.org
/
mat
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tdb: be more careful on 4G files.
[mat/samba.git]
/
lib
/
tdb
/
common
/
freelist.c
diff --git
a/lib/tdb/common/freelist.c
b/lib/tdb/common/freelist.c
index 927078a7aa5cec47b7d67ee44410d8dd007936f6..6358f64a04ab8db19693b05e6f84f282c44c348e 100644
(file)
--- a/
lib/tdb/common/freelist.c
+++ b/
lib/tdb/common/freelist.c
@@
-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->next
,
sizeof(*rec), 0) != 0)
return -1;
return 0;
}