summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-22 23:16:19 +0200
committerGünther Deschner <gd@samba.org>2008-10-22 23:17:02 +0200
commitf9c6313e660e7a6dc78c124ffb88c1258c5a5025 (patch)
tree2b33c6f2f837c7865cb8508366367aa83e61a2c4 /source3
parent0f898718372d2a6c4d650c40562ac8fd117f1fab (diff)
downloadsamba-f9c6313e660e7a6dc78c124ffb88c1258c5a5025.tar.gz
samba-f9c6313e660e7a6dc78c124ffb88c1258c5a5025.tar.bz2
samba-f9c6313e660e7a6dc78c124ffb88c1258c5a5025.zip
s3-samr-server: fix access check in _samr_QuerySecurity().
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 221ad29144..d08bb50bb9 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -871,7 +871,7 @@ NTSTATUS _samr_QuerySecurity(pipes_struct *p,
status = access_check_samr_function(acc_granted,
STD_RIGHT_READ_CONTROL_ACCESS,
"_samr_QuerySecurity");
- if (NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}