summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/locking/locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index e3b4e497a3..c1f99430ed 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -1438,7 +1438,7 @@ bool set_write_time(struct file_id fileid, struct timespec write_time)
convert_timespec_to_time_t(write_time)),
file_id_string_tos(&fileid)));
- lck = get_share_mode_lock(NULL, fileid, NULL, NULL, NULL);
+ lck = get_share_mode_lock(talloc_tos(), fileid, NULL, NULL, NULL);
if (lck == NULL) {
return False;
}