From - Wed Jan 05 18:54:41 2000 Message-Id: <3872A38E.B3DDCCA2@valinux.com> Reply-To: jeremy@valinux.com From: Jeremy Allison To: Multiple recipients of list SAMBA Subject: Re: Signal 11 in attempt_netbios_session_request MIME-Version: 1.0 Content-Transfer-Encoding: 7bit References: <17F0EC17EF87D311BF65009027D3C39D0E812E@ais.msu.edu> Date: Wed, 5 Jan 2000 12:20:14 +1100 Content-Type: text/plain; charset=us-ascii "Murphy, Patrick" wrote: > > I have just upgraded to Samba 2.0.6 and can no longer connect to Samba > shares on my FreeBSD 3.4-RELEASE machine. When I attempt to connect, the > smb.log contains the following information: This is a known problem I'm afraid. Please apply the following patch to the 2.0.6 source code (this will be in 2.0.7). Regards, Jeremy Allison, Samba Team. --------------------cut here---------------------------- --- /home/jeremy/tmp/samba-2.0.6/source/libsmb/clientgen.c Wed Nov 10 18:36:03 1999 +++ libsmb/clientgen.c Fri Dec 3 13:09:14 1999 @@ -2162,7 +2162,6 @@ int dirlist_len = 0; int total_received = -1; BOOL First = True; - int ff_resume_key = 0; int ff_searchcount=0; int ff_eos=0; int ff_lastname=0; @@ -2199,12 +2198,12 @@ SSVAL(param,0,ff_dir_handle); SSVAL(param,2,max_matches); /* max count */ SSVAL(param,4,info_level); - SIVAL(param,6,ff_resume_key); /* ff_resume_key */ + SIVAL(param,6,0); /* ff_resume_key */ SSVAL(param,10,8+4+2); /* resume required + close on end + continue */ pstrcpy(param+12,mask); - DEBUG(5,("hand=0x%X resume=%d ff_lastname=%d mask=%s\n", - ff_dir_handle,ff_resume_key,ff_lastname,mask)); + DEBUG(5,("hand=0x%X ff_lastname=%d mask=%s\n", + ff_dir_handle,ff_lastname,mask)); } if (!cli_send_trans(cli, SMBtrans2, @@ -2257,13 +2256,11 @@ switch(info_level) { case 260: - ff_resume_key =0; StrnCpy(mask,p+ff_lastname, MIN(sizeof(mask)-1,data_len-ff_lastname)); break; case 1: pstrcpy(mask,p + ff_lastname + 1); - ff_resume_key = 0; break; } } else { @@ -2295,8 +2292,8 @@ if (rdata) free(rdata); rdata = NULL; if (rparam) free(rparam); rparam = NULL; - DEBUG(3,("received %d entries (eos=%d resume=%d)\n", - ff_searchcount,ff_eos,ff_resume_key)); + DEBUG(3,("received %d entries (eos=%d)\n", + ff_searchcount,ff_eos)); if (ff_searchcount > 0) loop_count = 0; @@ -3253,9 +3250,9 @@ if (!nmb_name_equal(&called, &smbservername) || !cli_initialise(cli) || !cli_connect(cli, desthost, pdest_ip) || - !cli_session_request(cli, &calling, &called)) { - DEBUG(0,("attempt_netbios_session_request: %s rejected the session. \ -Error was : %s.\n", desthost, cli_errstr(cli))); + !cli_session_request(cli, &calling, &smbservername)) { + DEBUG(0,("attempt_netbios_session_request: %s rejected the session for name *SMBSERVER.\n", + desthost)); cli_shutdown(cli); return False; } --------------------cut here---------------------------- -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instructions. --------------------------------------------------------