From: Christof Schmitt Date: Fri, 1 Apr 2016 05:30:14 +0000 (-0700) Subject: vfs_full_audit: Assert that all VFS functions are implemented X-Git-Tag: tdb-1.3.9~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a9f74e3ac821d0b4b02c778cc9abff740294693;p=thirdparty%2Fsamba.git vfs_full_audit: Assert that all VFS functions are implemented Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 0ce44bf6e28..edff3950ce3 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -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;