s3: Use talloc_tos() in set_sticky_write_time()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Dec 2011 13:11:28 +0000 (14:11 +0100)
committerVolker Lendecke <vlendec@samba.org>
Tue, 13 Dec 2011 13:14:24 +0000 (14:14 +0100)
source3/locking/locking.c

index caa2b5aef6417418ed87e576b854f169a8e809f0..e3b4e497a3aafa52f4143f6e66e599aea60549f6 100644 (file)
@@ -1415,7 +1415,7 @@ bool set_sticky_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;
        }