diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-25 15:59:06 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-26 03:29:28 +0200 |
commit | 34c0b166b6abd1d52e4c07a798f41a245d39a426 (patch) | |
tree | 520744e341a4aacdfef2e97b5e230e30747086ec /source3/lib | |
parent | 8c55a9b459a7f54ab505954f2d1d66538dd98d1b (diff) | |
download | samba-34c0b166b6abd1d52e4c07a798f41a245d39a426.tar.gz samba-34c0b166b6abd1d52e4c07a798f41a245d39a426.tar.xz samba-34c0b166b6abd1d52e4c07a798f41a245d39a426.zip |
s3: Remove talloc_autofree_context() from serverid_parent_init()
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/serverid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index fefcc5df7c..3c86701596 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -33,7 +33,7 @@ struct serverid_data { uint32_t msg_flags; }; -bool serverid_parent_init(void) +bool serverid_parent_init(TALLOC_CTX *mem_ctx) { struct tdb_wrap *db; @@ -43,8 +43,7 @@ bool serverid_parent_init(void) * work. */ - db = tdb_wrap_open(talloc_autofree_context(), - lock_path("serverid.tdb"), + db = tdb_wrap_open(mem_ctx, lock_path("serverid.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT, 0644); if (db == NULL) { |