summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ldapd/btree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/btree.c b/usr.sbin/ldapd/btree.c
index 74579fee567..1afe1012c06 100644
--- a/usr.sbin/ldapd/btree.c
+++ b/usr.sbin/ldapd/btree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btree.c,v 1.18 2010/07/01 03:43:24 martinh Exp $ */
+/* $OpenBSD: btree.c,v 1.19 2010/07/01 05:13:11 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -3058,6 +3058,7 @@ btree_compact(struct btree *bt)
if ((btc = btree_open_fd(fd, 0)) == NULL)
goto failed;
+ bcopy(&bt->meta, &btc->meta, sizeof(bt->meta));
if ((txnc = btree_txn_begin(btc, 0)) == NULL)
goto failed;