summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-09 23:26:56 +0000
committerJeremy Allison <jra@samba.org>2004-03-09 23:26:56 +0000
commit0060085a837cbeb049d51a254fbe83b8eea685bb (patch)
tree82b5ffcde6b5ce976e49a39f4b92a7822a1c7584 /source3/smbd/trans2.c
parent104e6c43ed1f9732242db74792704beaf5fc302c (diff)
downloadsamba-0060085a837cbeb049d51a254fbe83b8eea685bb.tar.gz
samba-0060085a837cbeb049d51a254fbe83b8eea685bb.tar.bz2
samba-0060085a837cbeb049d51a254fbe83b8eea685bb.zip
Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code. Jeremy. (This used to be commit 70670841028aaeb72267ac41ca30af8dba412998)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 38fed4beae..19269cbc6c 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3390,7 +3390,6 @@ static int call_trans2getdfsreferral(connection_struct *conn, char* inbuf,
pstring pathname;
int reply_size = 0;
int max_referral_level;
- NTSTATUS status = NT_STATUS_OK;
DEBUG(10,("call_trans2getdfsreferral\n"));
@@ -3402,11 +3401,7 @@ static int call_trans2getdfsreferral(connection_struct *conn, char* inbuf,
if(!lp_host_msdfs())
return ERROR_DOS(ERRDOS,ERRbadfunc);
- srvstr_get_path(inbuf, pathname, &params[2], sizeof(pathname), -1, STR_TERMINATE, &status);
- if (!NT_STATUS_IS_OK(status)) {
- return ERROR_NT(status);
- }
-
+ srvstr_pull(inbuf, pathname, &params[2], sizeof(pathname), -1, STR_TERMINATE);
if((reply_size = setup_dfs_referral(conn, pathname,max_referral_level,ppdata)) < 0)
return UNIXERROR(ERRDOS,ERRbadfile);