svn commit: samba r11280 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch

jerry at samba.org jerry at samba.org
Mon Oct 24 16:55:27 GMT 2005


Author: jerry
Date: 2005-10-24 16:55:26 +0000 (Mon, 24 Oct 2005)
New Revision: 11280

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

Log:
BUG 3201: make sure request structure is cleared prior to sending the request to winbindd (prevents the WB_RECURSE flags from accidentially getting set
Modified:
   branches/SAMBA_3_0/source/nsswitch/wbinfo.c
   trunk/source/nsswitch/wbinfo.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/wbinfo.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/wbinfo.c	2005-10-24 15:56:04 UTC (rev 11279)
+++ branches/SAMBA_3_0/source/nsswitch/wbinfo.c	2005-10-24 16:55:26 UTC (rev 11280)
@@ -117,6 +117,7 @@
 	NSS_STATUS result;
 	int i;
 	
+	ZERO_STRUCT(request);
 	ZERO_STRUCT(response);
 
 	/* Send request */
@@ -146,6 +147,7 @@
 	int i;
 	const char *s;
 
+	ZERO_STRUCT(request);
 	ZERO_STRUCT(response);
 
 	/* Send request */
@@ -173,6 +175,7 @@
 	struct winbindd_response response;
 	NSS_STATUS result;
 
+	ZERO_STRUCT(request);
 	ZERO_STRUCT(response);
 
 	/* Send request */

Modified: trunk/source/nsswitch/wbinfo.c
===================================================================
--- trunk/source/nsswitch/wbinfo.c	2005-10-24 15:56:04 UTC (rev 11279)
+++ trunk/source/nsswitch/wbinfo.c	2005-10-24 16:55:26 UTC (rev 11280)
@@ -117,6 +117,7 @@
 	NSS_STATUS result;
 	int i;
 	
+	ZERO_STRUCT(request);
 	ZERO_STRUCT(response);
 
 	/* Send request */
@@ -146,6 +147,7 @@
 	int i;
 	const char *s;
 
+	ZERO_STRUCT(request);
 	ZERO_STRUCT(response);
 
 	/* Send request */
@@ -173,6 +175,7 @@
 	struct winbindd_response response;
 	NSS_STATUS result;
 
+	ZERO_STRUCT(request);
 	ZERO_STRUCT(response);
 
 	/* Send request */



More information about the samba-cvs mailing list