summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-30 08:44:06 -0700
committerAndrew Tridgell <tridge@samba.org>2008-09-30 08:46:22 -0700
commitdab5d4abbce7fc54427e5eb130e36860ffa74685 (patch)
tree2efc54557b70f623ea9411597620981c0db5b40a /source4/rpc_server
parentbe050125b60028ab05dfd685291d2163c2e5903a (diff)
downloadsamba-dab5d4abbce7fc54427e5eb130e36860ffa74685.tar.gz
samba-dab5d4abbce7fc54427e5eb130e36860ffa74685.tar.bz2
samba-dab5d4abbce7fc54427e5eb130e36860ffa74685.zip
cope with NULL attr
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/lsa/lsa_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/lsa/lsa_init.c b/source4/rpc_server/lsa/lsa_init.c
index a95cb10f9f..8d8417109f 100644
--- a/source4/rpc_server/lsa/lsa_init.c
+++ b/source4/rpc_server/lsa/lsa_init.c
@@ -199,7 +199,7 @@ NTSTATUS dcesrv_lsa_OpenPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX *
ZERO_STRUCTP(r->out.handle);
- if (r->in.attr == NULL ||
+ if (r->in.attr != NULL &&
r->in.attr->root_dir != NULL) {
/* MS-LSAD 3.1.4.4.1 */
return NT_STATUS_INVALID_PARAMETER;
@@ -217,6 +217,8 @@ NTSTATUS dcesrv_lsa_OpenPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX *
handle->data = talloc_steal(handle, state);
+ /* need to check the access mask against - need ACLs - fails
+ WSPP test */
state->access_mask = r->in.access_mask;
state->handle = handle;
*r->out.handle = handle->wire_handle;