vfs_full_audit: Assert that all VFS functions are implemented
authorChristof Schmitt <cs@samba.org>
Fri, 1 Apr 2016 05:30:14 +0000 (22:30 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 5 Apr 2016 22:15:17 +0000 (00:15 +0200)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_full_audit.c

index 0ce44bf6e28596ff4489192df3cda27fb64cc881..edff3950ce3ceb34a1899504510177e7177b2f62 100644 (file)
@@ -2587,9 +2587,13 @@ static struct vfs_fn_pointers vfs_full_audit_fns = {
 static_decl_vfs;
 NTSTATUS vfs_full_audit_init(void)
 {
-       NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
-                                       "full_audit", &vfs_full_audit_fns);
-       
+       NTSTATUS ret;
+
+       smb_vfs_assert_all_fns(&vfs_full_audit_fns, "full_audit");
+
+       ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "full_audit",
+                              &vfs_full_audit_fns);
+
        if (!NT_STATUS_IS_OK(ret))
                return ret;