s3-vfstest: Fix an uninitialized read in close
authorVolker Lendecke <vl@samba.org>
Thu, 2 Feb 2012 15:24:30 +0000 (16:24 +0100)
committerVolker Lendecke <vlendec@samba.org>
Thu, 2 Feb 2012 17:00:58 +0000 (18:00 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb  2 18:00:58 CET 2012 on sn-devel-104

source3/torture/vfstest.c

index 95c377a85f90348d69e8fccc9d1375fb9b74b758..22cded804fb492542a1e33ec3721f045f925a140 100644 (file)
@@ -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);