WSPP docs say we need to check that root_dir is NULL
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Sep 2008 23:51:05 +0000 (16:51 -0700)
committerAndrew Tridgell <tridge@samba.org>
Mon, 29 Sep 2008 23:51:05 +0000 (16:51 -0700)
source4/rpc_server/lsa/lsa_init.c

index e5e31c74f8331c65932c6160d4bbd66ed2ccbc63..a95cb10f9fa33b32b57095585220dcf6fa3036e8 100644 (file)
@@ -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;