[GSoC][Samba4] Segfault after calling libnet_UserInfo_send()

Andrew Bartlett abartlet at samba.org
Wed Aug 8 23:55:07 GMT 2007


On Wed, 2007-08-08 at 15:01 +0200, Rafal Szczesniak wrote:
> On Wed, Aug 08, 2007 at 10:39:32PM +1000, Andrew Bartlett wrote:
> > On Wed, 2007-08-08 at 14:38 +0200, Rafal Szczesniak wrote:
> > > On Wed, Aug 01, 2007 at 08:15:14AM +1000, Andrew Bartlett wrote:
> > 
> > > > Anyway, if you set 
> > > > 
> > > > user_info->in.domain_name = domain->libnet_ctx->samr.name
> > > > 
> > > > Then this should null out the check in lit libnet_UserInfo code that is
> > > > trying to close the pipe...
> > > 
> > > The thing I need to check is why the function segfaulted instead of
> > > closing the handle and opening the new one.
> > 
> > It turned out the policy handle (I think) was incorrectly initialised.
> > Perhaps test the close call with invalid inputs.
> 
> You mean policy handle in libnet context (your recent commit
> http://viewcvs.samba.org/cgi-bin/viewcvs.cgi?rev=24127&view=rev) or
> policy handle initialisation inside rpc server ?

I think it was the patch before that, but yes, problems on the client
side was what I meant.  (The invalid handle caused a fault, which the
client didn't cope with well).

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070809/664da27b/attachment.bin


More information about the samba-technical mailing list