svn commit: samba r25074 - in branches/SAMBA_3_2/source/nsswitch: .

metze at samba.org metze at samba.org
Tue Sep 11 10:21:36 GMT 2007


Author: metze
Date: 2007-09-11 10:21:34 +0000 (Tue, 11 Sep 2007)
New Revision: 25074

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

Log:
as all requests in the winbindd child are sync, we can use talloc_tos()

metze
Modified:
   branches/SAMBA_3_2/source/nsswitch/winbindd_dual.c


Changeset:
Modified: branches/SAMBA_3_2/source/nsswitch/winbindd_dual.c
===================================================================
--- branches/SAMBA_3_2/source/nsswitch/winbindd_dual.c	2007-09-11 01:02:50 UTC (rev 25073)
+++ branches/SAMBA_3_2/source/nsswitch/winbindd_dual.c	2007-09-11 10:21:34 UTC (rev 25074)
@@ -468,9 +468,8 @@
 	state->response.result = WINBINDD_ERROR;
 	state->response.length = sizeof(struct winbindd_response);
 
-	state->mem_ctx = talloc_init("winbind request");
-	if (state->mem_ctx == NULL)
-		return;
+	/* as all requests in the child are sync, we can use talloc_tos() */
+	state->mem_ctx = talloc_tos();
 
 	/* Process command */
 
@@ -488,8 +487,6 @@
 			  (int)state->request.cmd ));
 		state->response.result = WINBINDD_ERROR;
 	}
-
-	talloc_destroy(state->mem_ctx);
 }
 
 void setup_domain_child(struct winbindd_domain *domain,



More information about the samba-cvs mailing list