summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-09 23:26:58 +0000
committerJeremy Allison <jra@samba.org>2004-03-09 23:26:58 +0000
commit46a718189c261b1c4969faf1feae79b9feb6f1f0 (patch)
tree503718cc8491198f1def0bbf3ad0dd73f9ba4bc9 /source3/smbd
parentaddfc95df264a4af55516620d79c995e8279793d (diff)
downloadsamba-46a718189c261b1c4969faf1feae79b9feb6f1f0.tar.gz
samba-46a718189c261b1c4969faf1feae79b9feb6f1f0.tar.bz2
samba-46a718189c261b1c4969faf1feae79b9feb6f1f0.zip
Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code. Jeremy. (This used to be commit 42175b4518764e484d33d9fbfba3b78ba4102ead)
Diffstat (limited to 'source3/smbd')
-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);