summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/rpc_reg.h2
-rw-r--r--source3/rpc_server/srv_reg_nt.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h
index 2849122667..59684a5b5e 100644
--- a/source3/include/rpc_reg.h
+++ b/source3/include/rpc_reg.h
@@ -110,7 +110,7 @@ typedef struct _RegistryKey {
struct _RegistryKey *prev, *next;
- POLICY_HND hnd;
+ /* POLICY_HND hnd; */
pstring name; /* full name of registry key */
REGISTRY_HOOK *hook;
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 9792592c19..9df8e9b5fc 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -43,9 +43,6 @@
struct generic_mapping reg_map = { REG_KEY_READ, REG_KEY_WRITE, REG_KEY_EXECUTE, REG_KEY_ALL };
-static REGISTRY_KEY *regkeys_list;
-
-
/******************************************************************
free() function for REGISTRY_KEY
*****************************************************************/
@@ -54,8 +51,6 @@ static void free_regkey_info(void *ptr)
{
REGISTRY_KEY *info = (REGISTRY_KEY*)ptr;
- DLIST_REMOVE(regkeys_list, info);
-
SAFE_FREE(info);
}
@@ -162,9 +157,6 @@ static WERROR open_registry_key(pipes_struct *p, POLICY_HND *hnd, REGISTRY_KEY *
if ( ! NT_STATUS_IS_OK(result) )
SAFE_FREE( regkey );
- else
- DLIST_ADD( regkeys_list, regkey );
-
DEBUG(7,("open_registry_key: exit\n"));