git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ceb353
)
s3-dfs: removed the last user of sec_len==-1 in pull_*_base_talloc()
author
Andrew Tridgell
<tridge@samba.org>
Thu, 24 Mar 2011 02:00:37 +0000
(13:00 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 25 Mar 2011 03:37:06 +0000
(
04:37
+0100)
hopefully there aren't any others lurking in the code
source3/libsmb/clidfs.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clidfs.c
b/source3/libsmb/clidfs.c
index c6fe67f16abcf1a985a6a7b89c11fc1beadbd63c..957bf4d707ccd913870eab45451c74c13e9c5066 100644
(file)
--- 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) {