summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-25 02:04:10 +0000
committerJeremy Allison <jra@samba.org>2003-11-25 02:04:10 +0000
commit90d4b84636b08740c4dd4995250ac53ef345f6ce (patch)
tree49030d645182aee17cb0cec2cea03839e14cc929 /source3/rpc_server
parentb7937e569ce55605e2a837b9ee3144bca4099bc2 (diff)
downloadsamba-90d4b84636b08740c4dd4995250ac53ef345f6ce.tar.gz
samba-90d4b84636b08740c4dd4995250ac53ef345f6ce.tar.bz2
samba-90d4b84636b08740c4dd4995250ac53ef345f6ce.zip
Patch for #263 from jpjanosi@us.ibm.com.
Jeremy. (This used to be commit 6543bca0cbf6030d2400e30bb7491237d9c818f8)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_dfs_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_dfs_nt.c b/source3/rpc_server/srv_dfs_nt.c
index ac3ed9c394..f324fd126e 100644
--- a/source3/rpc_server/srv_dfs_nt.c
+++ b/source3/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;
}