Null pointer parameter in stat call in VFS layer

Jeremy Allison jra at
Thu Aug 14 01:02:35 GMT 2008

On Wed, Aug 13, 2008 at 06:23:09PM -0600, Cam Macdonell wrote:
> Hi,
> I'm running a 3.0.28 server with a stackable VFS layer that I wrote. I'm 
> encountering a bug that didn't occur when I ran with 3.0.21c previously.  
> When I initially connect to the samba server with smbclient, the server 
> executes a stat on the directory specified in the share.  However, the 
> call to my vfs_stat function (corresponds to SMB_VFS_OP_STAT) receives a 
> null pointer for the third parameter which is of type SMB_STRUCT_STAT*.  
> Is there some circumstance where the stat buffer might be null?  The 
> expected behaviour of returning -1 with "Bad Address" causes the samba 
> connection to fail.

Can you post a backtrace when you get the NULL
pointer ? Also you might want to try a later
release. This could be a bug that was fixed.



More information about the samba-technical mailing list