summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb2/tcon.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-02-18 14:54:14 +1100
committerAndrew Tridgell <tridge@samba.org>2008-02-18 14:54:14 +1100
commit5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1 (patch)
tree13fc08f8e302d9772702debe115380e71946bf4c /source4/smb_server/smb2/tcon.c
parent26b8701321909e10aac124324695f9f4891b1f8d (diff)
downloadsamba-5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1.tar.gz
samba-5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1.tar.bz2
samba-5fb241e5d33024dd7af1e7ec5cbdefbf144be6a1.zip
3 places where the VFS backend doesn't handle NULL strings.
(This used to be commit cf109460aff5a8437ab7eba05e4d7316a131080e)
Diffstat (limited to 'source4/smb_server/smb2/tcon.c')
-rw-r--r--source4/smb_server/smb2/tcon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/tcon.c b/source4/smb_server/smb2/tcon.c
index 50094b806d..7f7d558b16 100644
--- a/source4/smb_server/smb2/tcon.c
+++ b/source4/smb_server/smb2/tcon.c
@@ -394,6 +394,11 @@ void smb2srv_tcon_recv(struct smb2srv_request *req)
io->smb2.in.reserved = SVAL(req->in.body, 0x02);
SMB2SRV_CHECK(smb2_pull_o16s16_string(&req->in, io, req->in.body+0x04, &io->smb2.in.path));
+ /* the VFS backend does not yet handle NULL paths */
+ if (io->smb2.in.path == NULL) {
+ io->smb2.in.path = "";
+ }
+
req->status = smb2srv_tcon_backend(req, io);
if (req->control_flags & SMB2SRV_REQ_CTRL_FLAG_NOT_REPLY) {