From 32e6cf5e3f70bc9d41588ae8ad0b1f90c7a02651 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 4 Apr 2005 14:58:52 +0000 Subject: r6192: remove handle->destroy function pointer, this should be done by talloc destructors now metze (This used to be commit 862226f557dddf989cbbdbfd5aa2bf6f2312fdf0) --- source4/rpc_server/dcerpc_server.h | 1 - source4/rpc_server/handles.c | 4 ---- 2 files changed, 5 deletions(-) (limited to 'source4') 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; -- cgit