s3: Use talloc_tos() in set_write_time()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Dec 2011 13:11:38 +0000 (14:11 +0100)
committerVolker Lendecke <vlendec@samba.org>
Tue, 13 Dec 2011 14:44:58 +0000 (15:44 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 13 15:44:58 CET 2011 on sn-devel-104

source3/locking/locking.c

index e3b4e497a3aafa52f4143f6e66e599aea60549f6..c1f99430eddf48093e3d5858396b29fe9fe400ec 100644 (file)
@@ -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;
        }