summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-02 16:24:30 +0100
committerVolker Lendecke <vlendec@samba.org>2012-02-02 18:00:58 +0100
commit3bea5a147b2a381fc4fa860c7b1ceeed11be4e80 (patch)
treea3a455bf85b38f4dbad9fa36c53eeb5e4379b068 /source3/torture
parent25d3a2e83c66371eeee9a5f34a5379b87435e687 (diff)
downloadsamba-3bea5a147b2a381fc4fa860c7b1ceeed11be4e80.tar.gz
samba-3bea5a147b2a381fc4fa860c7b1ceeed11be4e80.tar.bz2
samba-3bea5a147b2a381fc4fa860c7b1ceeed11be4e80.zip
s3-vfstest: Fix an uninitialized read in close
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Feb 2 18:00:58 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/vfstest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 95c377a85f..22cded804f 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -478,6 +478,10 @@ int main(int argc, char *argv[])
/* some advanced initialization stuff */
smbd_vfs_init(vfs.conn);
+ if (!posix_locking_init(false)) {
+ return 1;
+ }
+
/* Do we have a file input? */
if (filename && filename[0]) {
process_file(&vfs, filename);