summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-27 01:44:06 +0200
committerVolker Lendecke <vl@samba.org>2010-09-28 07:36:15 +0200
commit93adf70d1a2a3371562606dbda36016e9a15eeaf (patch)
treef9ab9d1b3d7fe26187a5bf82319dc81444a8387c
parent491102c1ce842e14be8074a4abe6676b83efa5eb (diff)
downloadsamba-93adf70d1a2a3371562606dbda36016e9a15eeaf.tar.gz
samba-93adf70d1a2a3371562606dbda36016e9a15eeaf.tar.bz2
samba-93adf70d1a2a3371562606dbda36016e9a15eeaf.zip
s3: Remove talloc_autofree_context() from receive_unexpected()
This is freed in this routine a few lines down
-rw-r--r--source3/libsmb/unexpected.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c
index 17ebcd22ab..6daf61f4af 100644
--- a/source3/libsmb/unexpected.c
+++ b/source3/libsmb/unexpected.c
@@ -189,8 +189,8 @@ struct packet_struct *receive_unexpected(enum packet_type packet_type, int id,
struct tdb_wrap *tdb2;
struct receive_unexpected_state state;
- tdb2 = tdb_wrap_open(talloc_autofree_context(),
- lock_path("unexpected.tdb"), 0, 0, O_RDONLY, 0);
+ tdb2 = tdb_wrap_open(talloc_tos(), lock_path("unexpected.tdb"), 0, 0,
+ O_RDONLY, 0);
if (!tdb2) return NULL;
state.matched_packet = NULL;