diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-29 16:51:05 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-29 16:51:05 -0700 |
commit | 28482efa5ceebdea821b9368a2761e93ee2fff59 (patch) | |
tree | 7418e176fda7c7cfe032fee8a7dab0098fefb5f2 /source4 | |
parent | 40fa4c4154aa572f39fddf16b2fefbe370910360 (diff) | |
download | samba-28482efa5ceebdea821b9368a2761e93ee2fff59.tar.gz samba-28482efa5ceebdea821b9368a2761e93ee2fff59.tar.bz2 samba-28482efa5ceebdea821b9368a2761e93ee2fff59.zip |
WSPP docs say we need to check that root_dir is NULL
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/lsa/lsa_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/lsa/lsa_init.c b/source4/rpc_server/lsa/lsa_init.c index e5e31c74f8..a95cb10f9f 100644 --- a/source4/rpc_server/lsa/lsa_init.c +++ b/source4/rpc_server/lsa/lsa_init.c @@ -199,6 +199,12 @@ NTSTATUS dcesrv_lsa_OpenPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX * ZERO_STRUCTP(r->out.handle); + if (r->in.attr == NULL || + r->in.attr->root_dir != NULL) { + /* MS-LSAD 3.1.4.4.1 */ + return NT_STATUS_INVALID_PARAMETER; + } + status = dcesrv_lsa_get_policy_state(dce_call, mem_ctx, &state); if (!NT_STATUS_IS_OK(status)) { return status; |