mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r6192: remove handle->destroy function pointer, this should be done by talloc destructors now
metze
This commit is contained in:
parent
e66aa87f14
commit
862226f557
@ -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 */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user