svn commit: samba r6192 - in branches/SAMBA_4_0/source/rpc_server: .

metze at samba.org metze at samba.org
Mon Apr 4 14:58:52 GMT 2005


Author: metze
Date: 2005-04-04 14:58:52 +0000 (Mon, 04 Apr 2005)
New Revision: 6192

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6192

Log:
remove handle->destroy function pointer, this should be done by talloc destructors now

metze

Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h
   branches/SAMBA_4_0/source/rpc_server/handles.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h	2005-04-04 14:25:29 UTC (rev 6191)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h	2005-04-04 14:58:52 UTC (rev 6192)
@@ -119,7 +119,6 @@
 	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 */

Modified: branches/SAMBA_4_0/source/rpc_server/handles.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/handles.c	2005-04-04 14:25:29 UTC (rev 6191)
+++ branches/SAMBA_4_0/source/rpc_server/handles.c	2005-04-04 14:58:52 UTC (rev 6192)
@@ -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 @@
 		return NULL;
 	}
 	h->data = NULL;
-	h->destroy = NULL;
 	h->context = context;
 
 	h->wire_handle.handle_type = handle_type;



More information about the samba-cvs mailing list