summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/dcerpc_server.h1
-rw-r--r--source4/rpc_server/handles.c4
2 files changed, 0 insertions, 5 deletions
diff --git a/source4/rpc_server/dcerpc_server.h b/source4/rpc_server/dcerpc_server.h
index 77fb76448c..85b51545a1 100644
--- a/source4/rpc_server/dcerpc_server.h
+++ b/source4/rpc_server/dcerpc_server.h
@@ -119,7 +119,6 @@ struct dcesrv_handle {
struct dcesrv_connection_context *context;
struct policy_handle wire_handle;
void *data;
- void (*destroy)(struct dcesrv_connection_context *, struct dcesrv_handle *);
};
/* hold the authentication state information */
diff --git a/source4/rpc_server/handles.c b/source4/rpc_server/handles.c
index b203f45e4e..3cc9e8a425 100644
--- a/source4/rpc_server/handles.c
+++ b/source4/rpc_server/handles.c
@@ -30,9 +30,6 @@
static int dcesrv_handle_destructor(void *ptr)
{
struct dcesrv_handle *h = ptr;
- if (h->destroy) {
- h->destroy(h->context, h);
- }
DLIST_REMOVE(h->context->handles, h);
talloc_free(h);
return 0;
@@ -52,7 +49,6 @@ struct dcesrv_handle *dcesrv_handle_new(struct dcesrv_connection_context *contex
return NULL;
}
h->data = NULL;
- h->destroy = NULL;
h->context = context;
h->wire_handle.handle_type = handle_type;