summaryrefslogtreecommitdiffstats
path: root/source/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-25 02:04:03 +0000
committerJeremy Allison <jra@samba.org>2003-11-25 02:04:03 +0000
commit0f2a50316d8245ea9c441f0ea08e1a0fd9a92583 (patch)
tree75b0c7dff3821e06258a27a0594658c3e5b6ab85 /source/rpc_server
parent8916ddfc39c3e70265188926f24034152f0e7b6b (diff)
downloadsamba-0f2a50316d8245ea9c441f0ea08e1a0fd9a92583.tar.gz
samba-0f2a50316d8245ea9c441f0ea08e1a0fd9a92583.tar.xz
samba-0f2a50316d8245ea9c441f0ea08e1a0fd9a92583.zip
Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
Diffstat (limited to 'source/rpc_server')
-rw-r--r--source/rpc_server/srv_dfs_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/rpc_server/srv_dfs_nt.c b/source/rpc_server/srv_dfs_nt.c
index ac3ed9c3947..f324fd126ed 100644
--- a/source/rpc_server/srv_dfs_nt.c
+++ b/source/rpc_server/srv_dfs_nt.c
@@ -369,6 +369,7 @@ WERROR _dfs_get_info(pipes_struct *p, DFS_Q_DFS_GET_INFO *q_u,
{
UNISTR2* uni_path = &q_u->uni_path;
uint32 level = q_u->level;
+ int consumedcnt = sizeof(pstring);
pstring path;
struct junction_map jn;
@@ -377,7 +378,7 @@ WERROR _dfs_get_info(pipes_struct *p, DFS_Q_DFS_GET_INFO *q_u,
return WERR_DFS_NO_SUCH_SERVER;
/* The following call can change the cwd. */
- if(!get_referred_path(path, &jn, NULL, NULL)) {
+ if(!get_referred_path(path, &jn, &consumedcnt, NULL) || consumedcnt < strlen(path)) {
vfs_ChDir(p->conn,p->conn->connectpath);
return WERR_DFS_NO_SUCH_VOL;
}