diff options
Diffstat (limited to 'lib/ntdb/transaction.c')
-rw-r--r-- | lib/ntdb/transaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ntdb/transaction.c b/lib/ntdb/transaction.c index 9f953a50e3..05f571e51a 100644 --- a/lib/ntdb/transaction.c +++ b/lib/ntdb/transaction.c @@ -927,7 +927,8 @@ static enum NTDB_ERROR transaction_setup_recovery(struct ntdb_context *ntdb) ntdb_convert(ntdb, recovery, sizeof(*recovery)); /* write the recovery data to the recovery area */ - ecode = methods->twrite(ntdb, recovery_off, recovery, recovery_size); + ecode = methods->twrite(ntdb, recovery_off, recovery, + sizeof(*recovery) + recovery_size); if (ecode != NTDB_SUCCESS) { free(recovery); return ntdb_logerr(ntdb, ecode, NTDB_LOG_ERROR, |