summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-09-13 19:59:18 +0930
committerRusty Russell <rusty@rustcorp.com.au>2010-09-13 19:59:18 +0930
commitf77708e96268d18abbfb038f4e78fe9e11a2856f (patch)
treeb2f1863a92a16e80eb320e9f19f304c6819efa90 /lib/tdb
parent82e5644c9dbf5c2e4b0c4183372e0a79203d32a5 (diff)
downloadsamba-f77708e96268d18abbfb038f4e78fe9e11a2856f.tar.gz
samba-f77708e96268d18abbfb038f4e78fe9e11a2856f.tar.bz2
samba-f77708e96268d18abbfb038f4e78fe9e11a2856f.zip
tdb: fix tdb_check() on other-endian tdbs.
We must not endian-convert the magic string, just the rest. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/common/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/check.c b/lib/tdb/common/check.c
index 3ac2eb5105..fd3c0a91f3 100644
--- a/lib/tdb/common/check.c
+++ b/lib/tdb/common/check.c
@@ -29,7 +29,7 @@ static bool tdb_check_header(struct tdb_context *tdb, tdb_off_t *recovery)
{
struct tdb_header hdr;
- if (tdb->methods->tdb_read(tdb, 0, &hdr, sizeof(hdr), DOCONV()) == -1)
+ if (tdb->methods->tdb_read(tdb, 0, &hdr, sizeof(hdr), 0) == -1)
return false;
if (strcmp(hdr.magic_food, TDB_MAGIC_FOOD) != 0)
goto corrupt;