s4:pvfs: use talloc_get_type() to cast from void *
[jra/samba/.git] / source4 / ntvfs / posix / vfs_posix.c
index 6b0f32e65a84a41ff1a774b7f01ca3cd43c848e0..29ef701deebd846c9f3c01f4692026848ba1682f 100644 (file)
@@ -274,7 +274,8 @@ static NTSTATUS pvfs_chkpath(struct ntvfs_module_context *ntvfs,
                             struct ntvfs_request *req,
                             union smb_chkpath *cp)
 {
-       struct pvfs_state *pvfs = ntvfs->private_data;
+       struct pvfs_state *pvfs = talloc_get_type(ntvfs->private_data,
+                                 struct pvfs_state);
        struct pvfs_filename *name;
        NTSTATUS status;