summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_daemon.h1
-rw-r--r--src/daemon/ntapi_dsr_init.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/ntapi/nt_daemon.h b/include/ntapi/nt_daemon.h
index c3734c6..0b44e86 100644
--- a/include/ntapi/nt_daemon.h
+++ b/include/ntapi/nt_daemon.h
@@ -54,6 +54,7 @@ typedef struct _nt_daemon_params {
wchar16_t * port_name;
nt_port_keys * port_keys;
nt_port_name_keys * port_name_keys;
+ nt_sd * port_sd;
uintptr_t port_msg_size;
nt_daemon_routine * daemon_once_routine;
nt_daemon_routine * daemon_loop_routine;
diff --git a/src/daemon/ntapi_dsr_init.c b/src/daemon/ntapi_dsr_init.c
index 6e3951f..8f29eec 100644
--- a/src/daemon/ntapi_dsr_init.c
+++ b/src/daemon/ntapi_dsr_init.c
@@ -234,7 +234,7 @@ int32_t __stdcall __ntapi_dsr_create_port(nt_daemon_params * params)
oa.root_dir = (void *)0;
oa.obj_name = &server_name;
oa.obj_attr = 0;
- oa.sec_desc = (nt_security_descriptor *)0;
+ oa.sec_desc = params->port_sd;
oa.sec_qos = &sqos;
/* create the port */