User Manager for Domains problem with Win2k

Jim McDonough jmcdough at hotmail.com
Wed Feb 28 20:07:30 GMT 2001


First off, apologies for a duplicate that will probably come later from my 
real ID.  We've got some problems with sending mail today....

In trying to get a user list from User Manager for Domains on a Win2k box 
with a curent SAMBA_2_2 cvs server, I get a segv in smbd, trying to marshall 
a WKS_INFO_100 structure.  We are trying to marshall data from a stack frame 
in _wks_query_info when were are no longer in that function.  It blows up in 
trying to marshall a unistr2 inside of wks_io_wks_info_100 in parse_wks.c.  
(I even got a 300 meg core file!  Fun!)

Here's how I fixed it...just made the struct static.  You may want to 
allocate and free it later instead...

--- /samba/orig/samba-2.2/source/rpc_server/srv_wkssvc_nt.c	Mon Feb 26 
13:06:12 2001
+++ rpc_server/srv_wkssvc_nt.c	Wed Feb 28 11:16:53 2001
@@ -62,7 +62,7 @@

uint32 _wks_query_info(pipes_struct *p, WKS_Q_QUERY_INFO *q_u, 
WKS_R_QUERY_INFO *r_u)
{
-	WKS_INFO_100 wks100;
+	static WKS_INFO_100 wks100;

	DEBUG(5,("_wks_query_info: %d\n", __LINE__));



Jim McDonough
(usually jmcd at us.ibm.com, when mail is working right).
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





More information about the samba-technical mailing list