summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-03-24 13:00:37 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-25 04:37:06 +0100
commit4d47493368c0bdfa715814bf5736866a369f00f5 (patch)
treeba6f870567e0064d4bc65affd705e6413fd79ca5
parent3ceb353939e4c67b41cde5af1e7f261cd697b2e6 (diff)
downloadsamba-4d47493368c0bdfa715814bf5736866a369f00f5.tar.gz
samba-4d47493368c0bdfa715814bf5736866a369f00f5.tar.bz2
samba-4d47493368c0bdfa715814bf5736866a369f00f5.zip
s3-dfs: removed the last user of sec_len==-1 in pull_*_base_talloc()
hopefully there aren't any others lurking in the code
-rw-r--r--source3/libsmb/clidfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index c6fe67f16a..957bf4d707 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -738,7 +738,8 @@ NTSTATUS cli_dfs_get_referral(TALLOC_CTX *ctx,
clistr_pull_talloc(ctx, cli->inbuf,
SVAL(cli->inbuf, smb_flg2),
&referrals[i].dfspath,
- p+node_offset, -1,
+ p+node_offset,
+ cli->bufsize - ((p+node_offset)-cli->inbuf),
STR_TERMINATE|STR_UNICODE);
if (!referrals[i].dfspath) {