summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-05 14:29:05 +0100
committerVolker Lendecke <vl@samba.org>2009-11-05 14:44:25 +0100
commitb5afbb687d9ca0bc15f5dc59498f9d53bd8b4bf1 (patch)
tree4c95ea1ff110231eaf0bb9e0f2603268b5508976 /source3/smbd
parent1685ee3ee7b40ee8e36ab799c447ffacdc5d93ea (diff)
downloadsamba-b5afbb687d9ca0bc15f5dc59498f9d53bd8b4bf1.tar.gz
samba-b5afbb687d9ca0bc15f5dc59498f9d53bd8b4bf1.tar.bz2
samba-b5afbb687d9ca0bc15f5dc59498f9d53bd8b4bf1.zip
s3: Fix the talloc hierarchy in notify_remove_onelevel
We want to free the record early, not when talloc_tos() is free'ed.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/notify_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 973db7b7b1..3f61de579d 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -551,7 +551,7 @@ NTSTATUS notify_remove_onelevel(struct notify_context *notify,
}
rec = notify->db_onelevel->fetch_locked(
- notify->db_onelevel, talloc_tos(),
+ notify->db_onelevel, array,
make_tdb_data((uint8_t *)fid, sizeof(*fid)));
if (rec == NULL) {
DEBUG(10, ("notify_remove_onelevel: fetch_locked for %s failed"