[PATCH] Fix bug 9811 - Old DOS SMB CTEMP request uses a non-VFS function to access the filesystem.
Jeremy Allison
jra at samba.org
Fri Apr 19 10:54:13 MDT 2013
On Fri, Apr 19, 2013 at 11:01:54AM +0200, Andreas Schneider wrote:
> On Thursday 18 April 2013 10:28:30 Jeremy Allison wrote:
> > Move to using the same mechanism that the ntvfs server
> > uses to implement this call.
>
> + char *wire_name = NULL;
>
> ...
>
> + for (i = 0; i < 10; i++) {
> + if (*wire_name) {
>
> As wire_name can be NULL the if check should look like this:
No, wire_name can't be null. If the pull from the packet
fails (which would leave wire_name as NULL) we already
exit.
So at this point we know wire_name isn't null.
Jeremy.
More information about the samba-technical
mailing list