[PATCH] Fix smbclient regression not printing session setup anymore

Jeremy Allison jra at samba.org
Tue Jun 6 16:29:59 UTC 2017


On Tue, Jun 06, 2017 at 06:27:00PM +0200, Andreas Schneider via samba-technical wrote:
> On Tuesday, 6 June 2017 18:08:09 CEST Jeremy Allison wrote:
> > On Tue, Jun 06, 2017 at 05:56:21PM +0200, Andreas Schneider via samba-
> technical wrote:
> > > On Tuesday, 6 June 2017 17:35:52 CEST Andreas Schneider via
> > > samba-technical
> > > 
> > > wrote:
> > > > Hi,
> > > > 
> > > > with Samba 4.6 we have a regression. We do not get the information of
> > > > the
> > > > session setup filled out so smbclient can't print it.
> > > > 
> > > > Domain=[SAMBA-TEST] OS=[Windows 6.1] Server=[Samba
> > > > 4.7.0pre1-DEVELOPERBUILD] smb: \>
> > > > 
> > > > The attached patchset addresses the issue. I've open a bug for this:
> > > > 
> > > > https://bugzilla.samba.org/show_bug.cgi?id=12824
> > > 
> > > I've added a test to confirm that the message is actually printed so we do
> > > not regress again ...
> > 
> > The change from 'bool align_odd = true' to 'bool align_odd = false'
> > concerns me.
> > 
> > smb_bytes_pull_str() is used from all SMB1 session code inside
> > libcli/smb/smb1cli_session.c
> 
> The code called smb_bytes_talloc_string() before and this didn't handle 
> align_odd before, why should it now?

Sorry, I'm being dumb. What called smb_bytes_talloc_string() before ?

> If you set align_odd to true you get:
> 
> OS=[椀渀搀漀眀猀 㘀⸀㄀] Server=[匀愀洀戀愀 㐀⸀㜀⸀ 瀀爀攀㄀ⴀ䐀䔀嘀䔀䰀伀倀䔀刀䈀唀䤀䰀䐀]

I'm not saying you're wrong, I just want to know you thought
about all the implications :-) :-).



More information about the samba-technical mailing list