summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-04-04 14:58:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:25 -0500
commit32e6cf5e3f70bc9d41588ae8ad0b1f90c7a02651 (patch)
treea200a0b0310946c775cc1e2e9918793d9517692c /source4/rpc_server
parent051206ff1eef474e7929e8fca85b161d5306c6b8 (diff)
downloadsamba-32e6cf5e3f70bc9d41588ae8ad0b1f90c7a02651.tar.gz
samba-32e6cf5e3f70bc9d41588ae8ad0b1f90c7a02651.tar.bz2
samba-32e6cf5e3f70bc9d41588ae8ad0b1f90c7a02651.zip
r6192: remove handle->destroy function pointer, this should be done by talloc destructors now
metze (This used to be commit 862226f557dddf989cbbdbfd5aa2bf6f2312fdf0)
Diffstat (limited to 'source4/rpc_server')
-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;