git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40fa4c4
)
WSPP docs say we need to check that root_dir is NULL
author
Andrew Tridgell
<tridge@samba.org>
Mon, 29 Sep 2008 23:51:05 +0000
(16:51 -0700)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 29 Sep 2008 23:51:05 +0000
(16:51 -0700)
source4/rpc_server/lsa/lsa_init.c
patch
|
blob
|
history
diff --git
a/source4/rpc_server/lsa/lsa_init.c
b/source4/rpc_server/lsa/lsa_init.c
index e5e31c74f8331c65932c6160d4bbd66ed2ccbc63..a95cb10f9fa33b32b57095585220dcf6fa3036e8 100644
(file)
--- 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;